Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32🞂TCustomBitmap32🞂LoadFromResourceNameMethodPublic

TCustomBitmap32.LoadFromResourceName

Loads bitmap data from an executable module resource by string resource name.

Declaration ​

pascal
procedure LoadFromResourceName(Instance: THandle; const ResName: string; ResType: TResourceType = RT_BITMAP);

Parameters ​

ParameterTypeDescription
InstanceTHandleModule handle containing the resource.
ResNamestringResource name string.
ResTypeTResourceTypeResource type identifier (default RT_BITMAP).

Description ​

LoadFromResourceName loads bitmap contents from a compiled executable resource specified by string name.

Example ​

pascal
Bitmap.LoadFromResourceName(HInstance, 'MY_BITMAP');