CRgn::CreateEllipticRgn

BOOL CreateEllipticRgn( int x1, int y1, int x2, int y2 );

Return Value

Nonzero if the operation succeeded; otherwise 0.

Parameters

x1

Specifies the logical x-coordinate of the upper-left corner of the bounding rectangle of the ellipse.

y1

Specifies the logical y-coordinate of the upper-left corner of the bounding rectangle of the ellipse.

x2

Specifies the logical x-coordinate of the lower-right corner of the bounding rectangle of the ellipse.

y2

Specifies the logical y-coordinate of the lower-right corner of the bounding rectangle of the ellipse.

Remarks

Creates an elliptical region. The region is defined by the bounding rectangle specified by x1, y1, x2, and y2. The region is stored in the CRgn object.

The size of a region is limited to 32,767 by 32,767 logical units or 64K of memory, whichever is smaller.

When it has finished using a region created with the CreateEllipticRgn function, an application should select the region out of the device context and use the DeleteObject function to remove it.

CRgn OverviewClass MembersHierarchy Chart

See Also   CRgn::CreateEllipticRgnIndirect, ::CreateEllipticRgn