DstHeight property (Main Control)

Visual Basic example
Visual C++ 4.0 example

Visual J++ example

Syntax float DstHeight

Overview:  Refer to Displaying an Image.

Remarks

The height of the destination rectangle used when painting.

The initial value is the height of the bitmap. You can set this property or use the SetDstRect method to change the value. The position of the rectangle is relative to the Main Control. The unit of measure is determined by the ScaleMode property.

Because of a Windows limitation, destination rectangle measurements, when converted to pixels, cannot exceed the maximum value of an integer. On WIN32 systems, this is rarely a problem. LEADTOOLS returns an ERROR_INV_RANGE error if the problem occurs. An alternative for scaling large images is to make the source rectangle smaller, using the SetSrcRect method.

See Also

Elements:  DstLeft property, DstTop property, DstWidth property

Topics:  Raster Images: Displaying Images