OffsetRgn method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int OffsetRgn (int nDx, int nDy);

Delphi Syntax

OffsetRgn (nDx, nDy: Integer): Integer;

Overview

Refer to Creating and Using a Bitmap Region.

Remarks

Moves the bitmap region a specified distance. The move does not affect the pixels in the region.

The distances are relative to the LEAD bitmap in memory, not to the Main Control's client area. The unit of measure is pixels.

See Also

Elements:

SetRgnEllipse method, SetRgnRect method, SetRgnRoundRect method, SetRgnColor method, PolygonSize property , RgnLeft property, RgnTop property

Topics:

Raster Images: Creating and Using a Region