SetRgnRoundRect method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int SetRgnRoundRect (int nLeft, int nTop, int nWidth, int nHeight, int nWidthEllipse, int nHeightEllipse, Cardinal uCombineMode);

Delphi Syntax

SetRgnRoundRect (nLeft, nTop, nWidth, nHeight, nWidthEllipse, nHeightEllipse: Integer; uCombineMode: Cardinal): Integer;

Overview

Refer to Creating and Using a Bitmap Region.

Remarks

Adds a rounded rectangular region to the bitmap.

With this method, you can either replace the current region or create a complex region by setting a Boolean flag that determines how the added region interacts with the existing region. For possible values, specified in the uCombineMode parameter, refer to Flags for Setting a Region.

Coordinates are unscaled relative to the LEAD bitmap in memory. The unit of measure is pixels.

The following illustration shows how the you describe the rounded corners by specifying the width and height of an ellipse:

image\rndrect.gif

See Also

Elements:

SetRgnEllipse method, SetRgnRect method, SetRgnColor method, PolygonSize property, PolygonPoint property, OffsetRgn method

Topics:

Raster Images: Creating and Using a Region