|
Version: 1.1 Posted: 2006-08-01 Build Requirements: Xcode Runtime Requirements: Mac OS X Download Sample (SetCustomIcon.zip, 72.0K) |
||||||
DescriptionSetCustomIcon demonstrates how to programmatically set a custom icon of either a file or folder. A typical example may be to create an icon representation of a photo or picture. This example uses QuickTime's Graphics Importers in two areas. The Graphics Importer is used to draw the source image to the screen from the user panes kEventControlDraw event handler routine. It is also used during the process of converting the image to a PicHandle which is then used in the creation of an IconFamilyHandle. The utility routine SaveCustomIcon() is responsible for saving the IconFamilyHandle data as a resource in the appropriate format and location. Document Revision History
|
|