Arc

Syntax

BOOL Arc(hDC,X1,Y1,X2,Y2,X3,Y3,X4,Y4)

This function draws an elliptical arc. The center of the arc is the center of the bounding rectangle specified by the points (X1, Y1) and (X2, Y2). The arc starts at the point (X3, Y3) and ends at the point (X4, Y4). The arc is drawn using the selected pen and moving in a counterclockwise direction. Since an arc does not define a closed area, it is not filled.

Parameter Type/Description  

hDC HDC Identifies the device context.  
X1 int Specifies the logical x-coordinate of the upper-left corner of the bounding rectangle.  
Y1 int Specifies the logical y-coordinate of the upper-left corner of the bounding rectangle.  
X2 int Specifies the logical x-coordinate of the lower-right corner of the bounding rectangle.  
Y2 int Specifies the logical y-coordinate of the lower-right corner of the bounding rectangle.  
X3 int Specifies the logical x-coordinate of the arc's starting point. This point does not have to lie exactly on the arc.  
Y3 int Specifies the logical y-coordinate of the arc's starting point. This point does not have to lie exactly on the arc.  
X4 int Specifies the logical x-coordinate of the arc's endpoint. This point does not have to lie exactly on the arc.  
Y4 int Specifies the logical y-coordinate of the arc's endpoint. This point does not have to lie exactly on the arc.  

Return Value

The return value specifies whether the arc is drawn. It is nonzero if the arc is drawn. Otherwise, it is zero.

Comments

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