imageGetHeight
Description
Retrieves the height of the ColdFusion image in pixels.
Categories
Related
cfimage imageGetBlob imageGetBufferedImage imageGetEXIFTag imageGetIPTCTag imageGetWidth imageInfo isImage isImageFile
History
ColdFusion
8: Added this function.
Syntax
ImageGetHeight(name)
Attributes
| Attribute | Description | Required | Default |
|---|---|---|---|
| name | Required. The ColdFusion image on which this operation is performed. |
Returns
The
height of the specified ColdFusion image in pixels.
Usage
Use this function to retrieve the height of a ColdFusion image.
Example
<!--- This example shows how to retrieve the height of an image. ---> <!--- Create a ColdFusion image from a JPEG file. ---> <cfimage source="../cfdocs/images/artgallery/jeff05.jpg" name="myImage"> <!--- Retrieve the height of the image. ---> <cfset height=#ImageGetHeight(myImage)#> <!--- Display the height of the image. ---> <cfdump var="#height#">