CreateEllipticRgn

Syntax

HRGN CreateEllipticRgn(X1, Y1, X2, Y2)

This function creates an elliptical region.

Parameter Type/Description  
X1 int Specifies the x-coordinate of the upper-left corner of the bounding rectangle of the ellipse.  
Y1 int Specifies the y-coordinate of the upper-left corner of the bounding rectangle of the ellipse.  
X2 int Specifies the x-coordinate of the lower-right corner of the bounding rectangle of the ellipse.  
Y2 int Specifies the y-coordinate of the lower-right corner of the bounding rectangle of the ellipse.  

Return Value

The return value identifies a new region if the function is successful. Otherwise, it is NULL.

Comments

The width of the rectangle, specified by the absolute value of X2X1, must not exceed 32,767 units. This limit also applies to the height of the rectangle.