hElement = WinXDrawArc (hWnd, hPen, x1, y1, x2, y2, DOUBLE theta1, DOUBLE theta2)
Draws an arc
Parameter | Description |
---|---|
hWnd | The handle to the window to draw the arc on |
hPen | The handle to the pen to draw the arc with |
x1, y1 | The upper left corner of the bounding rectangle of the ellipse (see remars) |
x2, y2 | The lower right corner of the bounding rectangle of the ellipse (see remarks) |
theta1 | The starting angle of the ellipse in radians |
theta2 | The ending angle of the ellipse in radians |
The id of the arc or -1 on fail
If you register the onPaint callback, this function has no effect. This line will not be visible untill you call the WinXUpdate function. You can use the id returned by this function to undo the ellipse with the WinXUndo function.
The x1, y1, x2 and y2 parameters define a rectangle in which an ellipse can be thought to exist. The arc is draw by sweeping out part of this ellipse. A line from the center of the ellipse to the point at angle 0 touches the ellipse at its rightmost point. The angles theta1 and theta2 are measured anticlockwise from this point in radians. The arc is drawn from theta1 to theta2.
'create a pen |
WinXDrawEllipse
WinXDrawBezier
onPaint (Callback)
WinXUpdate
WinXUndo