TTMSMCPBitmapHelper.CreateFromResource Method
Creates and returns a new bitmap loaded from the named resource in the current module.
API unit family: TMS.MCP.Types
Declaring type: TTMSMCPBitmapHelper
Overloads
Overload 1
Creates and returns a new bitmap loaded from the named resource in the current module.
class function CreateFromResource(AResourceName: string): TTMSMCPBitmap; overload;
Parameters
| Name | Description |
|---|---|
AResourceName |
The resource identifier of the bitmap. |
Returns
A new bitmap loaded from the resource.
Overload 2
Creates and returns a new bitmap loaded from the named resource in the specified module instance.
class function CreateFromResource(AResourceName: string; AInstance: NativeUInt): TTMSMCPBitmap; overload;
Parameters
| Name | Description |
|---|---|
AResourceName |
The resource identifier of the bitmap. |
AInstance |
The module instance handle that contains the resource. |
Returns
A new bitmap loaded from the resource.