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

DrawArc() public method

Draws an arc representing a portion of an ellipse.
public DrawArc ( PdfSharp.Drawing.XPen pen, Rectangle rect, double startAngle, double sweepAngle ) : void
pen PdfSharp.Drawing.XPen
rect System.Drawing.Rectangle
startAngle double
sweepAngle double
return void
    public void DrawArc(XPen pen, Rectangle rect, double startAngle, double sweepAngle)
    {
      DrawArc(pen, (double)rect.X, (double)rect.Y, (double)rect.Width, (double)rect.Height, startAngle, sweepAngle);
    }
#endif

Same methods

XGraphics::DrawArc ( PdfSharp.Drawing.XPen pen, RectangleF rect, double startAngle, double sweepAngle ) : void
XGraphics::DrawArc ( PdfSharp.Drawing.XPen pen, PdfSharp.Drawing.XRect rect, double startAngle, double sweepAngle ) : void
XGraphics::DrawArc ( PdfSharp.Drawing.XPen pen, double x, double y, double width, double height, double startAngle, double sweepAngle ) : void
XGraphics::DrawArc ( PdfSharp.Drawing.XPen pen, int x, int y, int width, int height, int startAngle, int sweepAngle ) : void

Usage Example

Exemplo n.º 1
1
    /// <summary>
    /// Draws Arcs.
    /// </summary>
    void RenderArcs(XGraphics gfx)
    {
      gfx.TranslateTransform(15, 20);

      XPen pen = new XPen(XColors.Plum, 4.7);
      gfx.DrawArc(pen, 0, 0, 250, 140, 190, 200);
    }
All Usage Examples Of PdfSharp.Drawing.XGraphics::DrawArc