DstWidth property (ILEADRasterView)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

float DstWidth

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 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:

DstHeight property, DstLeft property, DstTop property

Topics:

Raster Images: Displaying Images