Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines whether a particular resource is a bitmap or an icon.
Syntax
client public static int resourceType(int resourceIdx)
Run On
Client
Parameters
- resourceIdx
Type: int
The ID of the resource that you want to load.
Return Value
Type: int
0 if the image is a bitmap; 1 if it is an icon.
Remarks
The values of resources can be found in the Resources macro.
Examples
The following example tests whether resource 3020 is an icon or a bitmap.
#Resource
print Image::resourceType(3020);
pause;