TTMSFNCScaledBitmaps.AddBitmapFromResource Method
Loads a bitmap from the application's default instance resources and adds it at the given scale.
API unit family: TMSFNCTypes
Declaring type: TTMSFNCScaledBitmaps
Overloads
Overload 1
Loads a bitmap from the application's default instance resources and adds it at the given scale.
function AddBitmapFromResource(ResourceName: String; Scale: Single = 1.0): TTMSFNCScaledBitmap; overload;
Parameters
| Name | Description |
|---|---|
ResourceName |
The resource name to load. |
Scale |
Display scale factor. Defaults to 1.0. |
Returns
The newly added scaled bitmap item.
Overload 2
Loads a bitmap from the specified module instance resources and adds it at the given scale.
function AddBitmapFromResource(ResourceName: String; AInstance: NativeUInt; Scale: Single = 1.0): TTMSFNCScaledBitmap; overload;
Parameters
| Name | Description |
|---|---|
ResourceName |
The resource name to load. |
AInstance |
Module instance handle from which to load the resource. |
Scale |
Display scale factor. Defaults to 1.0. |
Returns
The newly added scaled bitmap item.