SrcWidth property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int SrcWidth

Delphi Syntax

SrcWidth:Integer

Overview

Refer to Displaying an Image.

Remarks

Is the width of the source rectangle to use when painting.

The initial value is the width of the bitmap. You can set this property or use the SetSrcRect method to change the value.

The source rectangle specifies the portion of the bitmap to paint. Generally, this rectangle is used with the destination rectangle to scale the display. The unit of measure is pixels, and the position of the rectangle is relative to the origin of the bitmap.

See Also

Elements:

SrcHeight property, SrcLeft property, SrcTop property

Topics:

Raster Images: Displaying Images