RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBitmap.LoadFromResourceID Method

Loads a bitmap from a resource into the bitmap object.

Pascal
procedure LoadFromResourceID(Instance: THandle; ResID: Integer);
C++
__fastcall LoadFromResourceID(THandle Instance, int ResID);

Use LoadFromResourceID to load a specified bitmap resource along with palette information from a module's executable file.  

Instance is the handle of the module that contains the resource. 

ResID is the resource ID for the bitmap. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!