Vcl.Graphics.TBitmap.LoadFromResourceName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure LoadFromResourceName(Instance: THandle; const ResName: String);

C++

void __fastcall LoadFromResourceName(NativeUInt Instance, const System::UnicodeString ResName);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TBitmap

Description

Loads a bitmap resource into the bitmap object.

LoadFromResourceName loads the specified bitmap resource along with palette information from a module's executable file.

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

ResName is the name of the resource to load.

Note: Use this routine to load bitmaps from RES files instead of the LoadBitmap API. LoadBitmap does not support 256-color images.

See Also

Code Examples