DstWidth property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int DstWidth

Delphi Syntax

DstWidth: Integer

Overview

Refer to Displaying an Image.

Remarks

The width of the destination rectangle used when painting.

The initial value is the width 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:

DstHeight property, DstLeft property, DstTop property

Topics:

Raster Images: Displaying Images