4. System Classes : IconFile Class : GetBitmap Method
 
Share this page                  
GetBitmap Method
The GetBitmap method retrieves an icon from a file.
This method has the following syntax:
bitmapobject = IconFile.GetBitmap(IconIndex = integer)
This method has the following parameter:
IconIndex
Specifies the index of the icon in the bitmap file
Before invoking this method, you must associate the IconFile object with a file by setting the FileHandle attribute. The IconIndex parameter must be greater than zero and less than or equal to IconFile.Count.
In case of an error, the method returns NULL.