Resource help

Function help:

Real API_Resource_LoadIcon (String File name );

This function loads an icon and returns the resource handle.

Return value:
If this function succeeds, it returns the resource handle, otherwise it returns 0.
Real API_Resource_LoadBitmap (String File name );

This function loads a bitmap and returns the resource handle.

Return value:
If this function succeeds, it returns the resource handle, otherwise it returns 0.
Real API_Resource_LoadCursor (String File name );

This function loads a cursor and returns the resource handle.

Return value:
If this function succeeds, it returns the resource handle, otherwise it returns 0.
Real API_Resource_LoadRegion (String Region file name );

This function loads a region file.

You can use this region to shape a window using API_Window_SetRegion.

Return value:
If this function succeeds, it returns the resource handle, otherwise it returns 0.
Real API_Resource_LoadRegionBitmap (String Region file name, Real Transparent Color);

This function loads a region from a bitmap. (Loading from a region file is recommended)

You can use this region to shape a window using API_Window_SetRegion.

Return value:
If this function succeeds, it returns the resource handle, otherwise it returns 0.
Real API_Resource_Destroy (Real Resource Handle);

This function destroys a resource and clears it's memory.

Return value:
If this function succeeds, it returns true (1), otherwise it returns false (0).


Example code:

Icon1 = API_Resource_LoadIcon ("Icon.ico"); // Load icon.ico
Bitmap1 = API_Resource_LoadIcon ("Bitmap.bmp"); // Load bitmap.bmp

Return to help index