ImageEn, unit iexBitmaps

TIECustomMultiBitmap.GetAsTempBitmap

TIECustomMultiBitmap.GetAsTempBitmap


Declaration

function GetAsTempBitmap(ImageIndex: Integer; ID: Integer; MinW: Integer = 0; MinH: Integer = 0; Scale: Double = 1.0): TBitmap;


Description

Return a TBitmap representation of the image at the specified index.
ID can be any number. If the existing temporary bitmap does not match the specified ID, the image is regenerated.
MinW/MinH are used to specify a desired image size to improve performance (image is guaranteed to be at least this size).
If Scale is not 1.0, the image will be scaled (e.g. 0.50 will return a half size image).

Note: Do not free the result. It will be destroyed automatically.