GetImageExtents function
Syntax
GetImageExtents(IMAGE.ImageName)
Description
Use the GetImageExtents function to return the width and height of the image specified by ImageName.
Parameters
| Parameter | Description |
|---|---|
|
ImageName |
Specify the name of the image on the page. This image must exist on the page. |
Returns
An array of data type number, where element 1 is the image height and element 2 is the image width.
Example
Local array of number &ImageExtents;
&ImageExtents = GetImageExtents(Image.PT_TREE_EXPANDED);
WinMessage("Height is " | &ImageExtents[1] | " and width is " | &ImageExtents[2]);