ImageEn, unit iexHelperFunctions

TIEMultiBitmapHelper.LoadFromResource

TIEMultiBitmapHelper.LoadFromResource

Declaration

procedure LoadFromResource(const ModulePath: String; ResourceTypes: TIEResourceTypes; FileType: TIOFileType = ioUnknown);

Description

Appends the specified types of resources from PE files like EXE, DLL, OCX, ICL, BPL, etc from a module, such as an EXE file.
Parameter Description
ModulePath Specifies the path and filename of PE module
ResourceType Resource types, e.g. [ietrBitmap, ietrCursor]

Note:
If ResourceTypes = [], then all image type resources are loaded: [ ietrIcon, ietrCursor, ietrBitmap, ietrRCData ]
ietrCursor and ietrGroupCursor will usually return the same resources, as will ietrGroupIcon and ietrIcon
Items are appended to the existing images. Call Clear if you wish to replace the existing content

Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr

Example

Also see: Automated Samples
// Load all "Bitmap" type respources from "explorer.exe"
ImageEnMView1.Clear();
ImageEnMView1.IEMBitmap.LoadFromResource( 'explorer.exe', [ ietrBitmap ]);
ImageEnMView1.Update();

// Load all resources in the current application
ImageEnMView1.Clear();
ImageEnMView1.IEMBitmap.LoadFromResource( Application.ExeName, [] );
ImageEnMView1.Update();

See Also

TImageEnIO.LoadFromResource
TIEBitmap.LoadFromResource
TIEResourceExtractor