TTMSFNCGraphics.GetBitmapFromBitmapContainer Method
Retrieves a bitmap by name from a bitmap container, optionally selecting a DPI-scaled variant.
API unit family: TMSFNCGraphics
Declaring type: TTMSFNCGraphics
Syntax
class function GetBitmapFromBitmapContainer(ABitmapContainer: TTMSFNCBitmapContainer; AName: string; AApplyScale: Boolean = False; AScale: Single = 0): TTMSFNCBitmap; virtual;
Parameters
| Name | Description |
|---|---|
ABitmapContainer |
Container to search for the named bitmap. |
AName |
Name of the bitmap entry to retrieve. |
AApplyScale |
When True, attempts to return a DPI-scaled variant. Default is False. |
AScale |
DPI scale factor used when AApplyScale is True. Pass 0 to use the screen scale. Default is 0. |
Returns
The matching TTMSFNCBitmap, or nil if the name was not found.