Skip to main content
Table of Contents

TTMSFNCBitmapContainer.AddFromResource Method

Adds a bitmap from an application resource and assigns it the specified name.

API unit family: TMSFNCBitmapContainer Declaring type: TTMSFNCBitmapContainer

Overloads

Overload 1

Adds a bitmap from an application resource and assigns it the specified name.

FMX.TMSFNCBitmapContainer.hppPascalC++
procedure AddFromResource(ResourceName, BitmapName: string; AInstance: NativeUInt); overload;
void __fastcall AddFromResource(System::UnicodeString ResourceName, System::UnicodeString BitmapName, System::NativeUInt AInstance)/* overload */;

Parameters

Name Description
ResourceName The resource identifier of the bitmap.
BitmapName The name to assign to the added bitmap item.
AInstance The module instance handle that contains the resource.

Overload 2

Adds a bitmap from an application resource in the current module and assigns it the specified name.

FMX.TMSFNCBitmapContainer.hppPascalC++
procedure AddFromResource(ResourceName, BitmapName: string); overload;
void __fastcall AddFromResource(System::UnicodeString ResourceName, System::UnicodeString BitmapName)/* overload */;

Parameters

Name Description
ResourceName The resource identifier of the bitmap.
BitmapName The name to assign to the added bitmap item.