PyCDC.Arc

Arc(rect, pointStart, pointEnd)

Draws an eliptical arc.

Parameters

rect : (left, top, right, bottom)

Specifies the ellipse's bounding rectangle

pointStart : (x,y)

Specifies the x- and y-coordinates of the point that defines the arc's starting point (in logical units). This point does not have to lie exactly on the arc.

pointEnd : (x,y)

Specifies the x- and y-coordinates of the point that defines the arc's ending point (in logical units). This point does not have to lie exactly on the arc.

Comments

The arc drawn by using the function is a segment of the ellipse defined by the specified bounding rectangle. The actual starting point of the arc is the point at which a ray drawn from the center of the bounding rectangle through the specified starting point intersects the ellipse. The actual ending point of the arc is the point at which a ray drawn from the center of the bounding rectangle through the specified ending point intersects the ellipse. The arc is drawn in a counterclockwise direction. Since an arc is not a closed figure, it is not filled. Both the width and height of the rectangle must be greater than 2 units and less than 32,767 units.

MFC References

CDC::Arc

Return Value

Always none. If the function fails, an exception is raised.