Description: This function returns information about a bitmap.
Returns: Numeric
Usage: Script or Steady State
Format: BitmapInfo(BitmapVal, Attribute)
Parameters: BitmapVal { numeric } { required } { no default: }
Any expression that returns a bitmap value such as MakeBitmap
Attribute { numeric } { required } { no default: }
Any numeric expression that identifies the information to be returned by this function, as per the following table:
|
Attribute |
Information returned |
|
0 |
Bitmap width in pixels |
|
1 |
Bitmap height in pixels |
Comments: BitmapInfo can be used to automate a module that displays bitmaps in response to a change in the bitmap.
Example:
pumpWidth = BitmapInfo(pumpBitmap, 0);
The example displayed above sets pumpWidth to the width of the bitmap value pumpBitmap.
See Also: