Partilhar via


Image.resourceType(Int32) Method

Definition

Determines whether a particular resource is a bitmap or an icon.

public:
 static int resourceType(int _resourceIdx);
public static int resourceType (int _resourceIdx);
static member resourceType : int -> int
Public Shared Function resourceType (_resourceIdx As Integer) As Integer

Parameters

_resourceIdx
Int32

The ID of the resource that you want to load.

Returns

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.

The following example tests whether resource 3020 is an icon or a bitmap.

#Resource 
print Image::resourceType(3020); 
pause;

Applies to