PdfSharp.Drawing.XGraphics.DrawPie C# (CSharp) Method

DrawPie() public method

Draws a pie defined by an ellipse.
public DrawPie ( XBrush brush, Rectangle rect, double startAngle, double sweepAngle ) : void
brush XBrush
rect Rectangle
startAngle double
sweepAngle double
return void
    public void DrawPie(XBrush brush, Rectangle rect, double startAngle, double sweepAngle)
    {
      DrawPie(brush, (double)rect.X, (double)rect.Y, (double)rect.Width, (double)rect.Height, startAngle, sweepAngle);
    }
#endif

Same methods

XGraphics::DrawPie ( XBrush brush, RectangleF rect, double startAngle, double sweepAngle ) : void
XGraphics::DrawPie ( XBrush brush, XRect rect, double startAngle, double sweepAngle ) : void
XGraphics::DrawPie ( XBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle ) : void
XGraphics::DrawPie ( XBrush brush, int x, int y, int width, int height, int startAngle, int sweepAngle ) : void
XGraphics::DrawPie ( XPen pen, Rectangle rect, double startAngle, double sweepAngle ) : void
XGraphics::DrawPie ( XPen pen, RectangleF rect, double startAngle, double sweepAngle ) : void
XGraphics::DrawPie ( XPen pen, XBrush brush, Rectangle rect, double startAngle, double sweepAngle ) : void
XGraphics::DrawPie ( XPen pen, XBrush brush, RectangleF rect, double startAngle, double sweepAngle ) : void
XGraphics::DrawPie ( XPen pen, XBrush brush, XRect rect, double startAngle, double sweepAngle ) : void
XGraphics::DrawPie ( XPen pen, XBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle ) : void
XGraphics::DrawPie ( XPen pen, XBrush brush, int x, int y, int width, int height, int startAngle, int sweepAngle ) : void
XGraphics::DrawPie ( XPen pen, XRect rect, double startAngle, double sweepAngle ) : void
XGraphics::DrawPie ( XPen pen, double x, double y, double width, double height, double startAngle, double sweepAngle ) : void
XGraphics::DrawPie ( XPen pen, int x, int y, int width, int height, int startAngle, int sweepAngle ) : void

Usage Example

Ejemplo n.º 1
1
    void RenderPies(XGraphics gfx)
    {
      gfx.TranslateTransform(15, 20);

      XPen pen = new XPen(XColors.DarkBlue, 2.5);

      gfx.DrawPie(pen, 10, 0, 100, 90, -120, 75);
      gfx.DrawPie(XBrushes.Gold, 130, 0, 100, 90, -160, 150);
      gfx.DrawPie(pen, XBrushes.Gold, 10, 50, 100, 90, 80, 70);
      gfx.DrawPie(pen, XBrushes.Gold, 150, 80, 60, 60, 35, 290);
    }
All Usage Examples Of PdfSharp.Drawing.XGraphics::DrawPie