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

TCustomBitmap32.LoadFromResourceID

Loads bitmap data from an executable module resource by integer resource ID.

Declaration ​

pascal
procedure LoadFromResourceID(Instance: THandle; ResID: Integer; ResType: TResourceType = RT_BITMAP);

Parameters ​

ParameterTypeDescription
InstanceTHandleModule handle containing the resource.
ResIDIntegerInteger resource ID.
ResTypeTResourceTypeResource type identifier (default RT_BITMAP).

Description ​

LoadFromResourceID loads bitmap contents from a compiled executable/DLL resource.

Example ​

pascal
Bitmap.LoadFromResourceID(HInstance, 101);