Exports the image for the icon at the specified index to another TFPImageBitmap class instance.
Source position: graphics.pp line 1672
public function TCustomIcon.ExportImage( |
AIndex: Integer; |
AImageClass: TFPImageBitmapClass |
AIndex |
|
Ordinal position for the icon exported in the method. |
AImageClass |
|
Graphics class for the exported image. |
Image instance created in the method where the exported icon is stored.
ExportImage creates a new instance of the bitmap image class specified in AImageClass, then calls its LoadFromRawImage method to load the raw image data for the shared icon. AIndex specifies the ordinal position in the Images for the the shared icon instance.
| Remark: | To avoid memory leaks, the bitmap instance created in the return value must be destroyed in the calling routine. |
Added in LCL version 4.2.
|
Number of images in the image list for the shared icon. |
|
|
Shared image with existing handles, canvases, etc. |
|
|
Loads image data from the specified TRawImage instance. |
|
|
Saves graphic image data to a stream using the specified format and file extension. |
| Version 4.4 | Generated 2025-11-08 | Home |