Search:     Advanced search

Function ImageHeight

Article ID: 321
Last updated: 24 Sep, 2010
Views: 855
Posted: 30 Dec, 2008
by Thomas B.
Updated: 24 Sep, 2010
by Murray D.

Description:

Returns the height of the current image.  If the image is a raster or bitmap image such as TIF, then this would be the height of the image in pixels.  If the image is a vector format (such as DXF, or DWG), then this value will vary depending on the default units in that drawing.

Notes:

Note: This does not return the scaled height of the page.  If you would like the overall height of the page in Feet, then you will need to multiply it by the ScaleY variable.

Also, since pages can be scaled both horizontally and vertically to compensate for out-of-proportion scans, you will need to multiply any width or X variables by ScaleX, and any height or Y variables by ScaleY.

Pascal Example:

ShowMessage(IntToStr(ImageHeight * ScaleY));

Visual Basic Example:

ShowMessage(IntToStr(ImageHeight * ScaleY))


Enterprise and Developer editions

This article was:  
Prev  Not what you're looking for? Suggest a topic  Next
Function ImageWidth     Function RandomColor