SetSrcRect method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int SetSrcRect (int iLeft, int iTop, int iWidth, int iHeight);

Delphi Syntax

SetSrcRect (iLeft, iTop, iWidth, iHeight: Integer): Integer;

Overview

Refer to Displaying an Image.

Remarks

Sets the source rectangle that is used when painting an image.

The source rectangle specifies the part of the bitmap to use as the display source.

See Also

Elements:

SetDstClipRect method, SetDstRect method, SetSrcClipRect method

Topics:

Raster Images: Displaying Images