DstHeight property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int DstHeight

Delphi Syntax

DstHeight: Integer

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 pixels.

Because of a Windows limitation, destination rectangle measurements, when measured in pixels, cannot exceed the maximum value of an integer. On WIN32 systems, this is rarely a problem. 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