Returns an image's actual height in pixels.

Syntax

<oRef>.imgPixelHeight

<oRef>

A reference to an image object.

Property of

Image

Description

The imgPixelHeight property is readonly and returns the actual height of the image currently loaded into an image object.

When no image is loaded into an image object, the imgPixelHeight property returns 0 (the default).

The imgPixelHeight property can be used with the imgPixelWidth property to retrieve the actual size of an image in pixels.

The image object's height and width properties can then be set to display the image at its actual size without clipping part of the image, or scaling the image to fit the image object.