R2 - DrawPie


void R2::DrawPie(Rectangle rect,
                 double startAngle,
                 double sweepAngle)

This method draws a pie.

Parameters

Rectangle rect

A rectangle that bounds the ellipse containing the pie.

double startAngle

The starting angle of the sector of the pie to be drawn (in degrees).

double sweepAngle

The sweep angle of the sector of the pie to be drawn (in degrees).

Notes

The following illustration shows the pie that is drawn in the ellipse that is bounded by the rectangle. The illustration also shows the horizontal axis of the ellipse and the direction of the startAngle and the sweepAngle.