TTMSFNCGraphics.GetScaledBitmap Method
Selects the best-resolution bitmap from a scaled bitmap collection for the given DPI scale factor.
API unit family: TMSFNCGraphics
Declaring type: TTMSFNCGraphics
Syntax
class function GetScaledBitmap(ABitmaps: TTMSFNCScaledBitmaps; AScale: Single = 0; ABitmapContainer: TTMSFNCBitmapContainer = nil): TTMSFNCBitmap;
Parameters
| Name | Description |
|---|---|
ABitmaps |
Scaled bitmap collection to select from. |
AScale |
DPI scale factor. Pass 0 to use the screen scale. Default is 0. |
ABitmapContainer |
Optional container used to resolve named bitmap references in the collection. Default is nil. |
Returns
The TTMSFNCBitmap that best matches the requested scale, or nil if the collection is empty.