Table of Contents

TTMSFNCBitmapHelper.CreateFromResource Method

Creates and returns a new bitmap loaded from the named resource in the current module.

API unit family: TMSFNCTypes Declaring type: TTMSFNCBitmapHelper

Overloads

Overload 1

Creates and returns a new bitmap loaded from the named resource in the current module.

class function CreateFromResource(AResourceName: string): TTMSFNCBitmap; 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): TTMSFNCBitmap; 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.