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

DrawClosedCurve() public method

Draws a closed cardinal spline defined by an array of points.
public DrawClosedCurve ( XBrush brush, PointF points ) : void
brush XBrush
points PointF
return void
    public void DrawClosedCurve(XBrush brush, PointF[] points)
    {
      DrawClosedCurve(null, brush, MakeXPointArray(points), XFillMode.Alternate, 0.5);
    }
#endif

Same methods

XGraphics::DrawClosedCurve ( XBrush brush, PointF points, XFillMode fillmode ) : void
XGraphics::DrawClosedCurve ( XBrush brush, PointF points, XFillMode fillmode, double tension ) : void
XGraphics::DrawClosedCurve ( XBrush brush, System points ) : void
XGraphics::DrawClosedCurve ( XBrush brush, System points, XFillMode fillmode ) : void
XGraphics::DrawClosedCurve ( XBrush brush, System points, XFillMode fillmode, double tension ) : void
XGraphics::DrawClosedCurve ( XBrush brush, XPoint points ) : void
XGraphics::DrawClosedCurve ( XBrush brush, XPoint points, XFillMode fillmode ) : void
XGraphics::DrawClosedCurve ( XBrush brush, XPoint points, XFillMode fillmode, double tension ) : void
XGraphics::DrawClosedCurve ( XPen pen, PointF points ) : void
XGraphics::DrawClosedCurve ( XPen pen, PointF points, double tension ) : void
XGraphics::DrawClosedCurve ( XPen pen, System points ) : void
XGraphics::DrawClosedCurve ( XPen pen, System points, double tension ) : void
XGraphics::DrawClosedCurve ( XPen pen, XBrush brush, PointF points ) : void
XGraphics::DrawClosedCurve ( XPen pen, XBrush brush, PointF points, XFillMode fillmode ) : void
XGraphics::DrawClosedCurve ( XPen pen, XBrush brush, PointF points, XFillMode fillmode, double tension ) : void
XGraphics::DrawClosedCurve ( XPen pen, XBrush brush, System points ) : void
XGraphics::DrawClosedCurve ( XPen pen, XBrush brush, System points, XFillMode fillmode ) : void
XGraphics::DrawClosedCurve ( XPen pen, XBrush brush, System points, XFillMode fillmode, double tension ) : void
XGraphics::DrawClosedCurve ( XPen pen, XBrush brush, XPoint points ) : void
XGraphics::DrawClosedCurve ( XPen pen, XBrush brush, XPoint points, XFillMode fillmode ) : void
XGraphics::DrawClosedCurve ( XPen pen, XBrush brush, XPoint points, XFillMode fillmode, double tension ) : void
XGraphics::DrawClosedCurve ( XPen pen, XPoint points ) : void
XGraphics::DrawClosedCurve ( XPen pen, XPoint points, double tension ) : void

Usage Example

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

      XPen pen = new XPen(XColors.DarkBlue, 2.5);
      gfx.DrawClosedCurve(pen, XBrushes.SkyBlue,
        new XPoint[] { new XPoint(10, 120), new XPoint(80, 30), new XPoint(220, 20), new XPoint(170, 110), new XPoint(100, 90) },
        XFillMode.Winding, 0.7);
    }
All Usage Examples Of PdfSharp.Drawing.XGraphics::DrawClosedCurve