BitmapInfo

(Engine-Level Function)

Description: Returns information about an image.
Returns: Numeric
Usage: Script or steady state.
Function Groups: Graphics
Related to: Crop | MakeBitmap
Format: BitmapInfo(BitmapVal, Attribute)
Parameters:  
BitmapVal
Required. Any expression that returns an image value such as MakeBitmap()
Attribute
Required. 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 images in response to a change in the image.

Example:

  pumpWidth = BitmapInfo(pumpBitmap, 0);

The example displayed above sets pumpWidth to the width of the image value pumpBitmap.