Loads the specified image resource from PE files like EXE, DLL, OCX, ICL, BPL, etc..

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public void LoadImage(
	string modulePath,
	string resourceType,
	string resourceName,
	IEFileFormats format
)
Public Sub LoadImage ( _
	modulePath As String, _
	resourceType As String, _
	resourceName As String, _
	format As IEFileFormats _
)
public:
void LoadImage(
	String^ modulePath, 
	String^ resourceType, 
	String^ resourceName, 
	IEFileFormats format
)

Parameters

modulePath
String
Specifies the path and filename of PE module.
resourceType
String
Resource type as string (ie 'Bitmap', 'Cursor').
resourceName
String
Resource name as string (ie 'INTRESOURCE:100', 'Hand').
format
IEFileFormats
Specifies the expected file format. If Format is ioUnknown, then try to find the format automatically. ioUnknown should fail for BMP, ICO and CUR resources.

Remarks

Loads resource 143, in "Bitmap"s, from "explorer.exe" (should be a little Windows logo)

CopyC#
IEViewer.Image.LoadImage("explorer.exe", "Bitmap", "INTRESOURCE:143", IEFileFormats.BMP);

See Also