HRESULT DrawPie ( FLOAT left, FLOAT top, FLOAT right, FLOAT bottom, FLOAT firstX, FLOAT firstY, FLOAT secondX, FLOAT secondY ) |
This method draws a path as an elliptical pie that is bounded by the rectangle with top-left corner (left, top) and bottom-right corner (right, bottom). The pie is drawn following the perimeter of the ellipse, counterclockwise, from the starting point to the ending point. The starting point is defined by the intersection of the ellipse and a line drawn from the center of the ellipse to the point (firstX, firstY). The ending point is defined by the intersection of the ellipse and a line drawn from the center of the ellipse to the point (secondX, secondY). The current point is center of the wedge.
See theĀ DrawAnglePie method for examples.