API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ISHELL_LOADRESIMAGE()

Brew Release
Brew MP 1.0.2
See Also
AEE_RES_LANGSUF AEE_RES_LANGDIR IImage IShell ISHELL_FreeResData ISHELL_LoadImage ISHELL_LoadResData ISHELL_LoadResObject ISHELL_LoadResSound ISHELL_LoadResString ISHELL_LoadSound
Description
This function loads a bitmap resource from the given resource file and returns a valid IImage interface pointer. This pointer can then be used for viewing the image.
Params
pIShell
[]:
Pointer to the IShell interface object.
pszResFile
[]:
Resource file containing the bitmap image.
nResID
[]:
ID of the bitmap in the resource file.
Interface
  • ISHELL
Prototype
  •     IImage * ISHELL_LoadResImage
        (
        IShell * pIShell,
        const char * pszResFile,
        int16 nResID
        );
    
Return
  • A pointer to an IImage interface that can be used for viewing the image, if successful. NULL if unsuccessful.
Side Effect
  • None
Comments
The image may not be fully decoded at the time that ISHELL_LoadResImage() returns. You should register for a notification of decoding completion with IIMAGE_Notify(), and not use the IImage until you have received the notification. This function uses ISHELL_LoadResObject().