Syntax
Img = LoadImgResource(Path$, *lpName, *lpType, Flags=#Null)Description
Loads an image from an OS-level executable resource (such as icons or bitmaps embedded in a DLL or EXE).
Parameters
Path$
The path to the executable or DLL containing the resource. Leave as an
empty string "" to load from the current executable.
*lpName
The resource identifier or string pointer for the resource name.
*lpType
The resource type (e.g., #RT_GROUP_ICON).
Flags (optional)
A combination of image flags, such as #PG_Img_SnapToSize,
#PG_Img_SnapToDPI, or #PG_Img_Trim. Default is
#Null.
Return Value
Returns a handle to the newly created ProGUI image object. Returns
#Null if loading fails.
Remarks
This command is useful for accessing built-in system icons or embedding your application graphics directly inside your executable.
See Also
Supported OS
Windows, Linux