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

DrawPolygon() public method

Draws a polygon defined by an array of points.
public DrawPolygon ( XBrush brush, PointF points, XFillMode fillmode ) : void
brush XBrush
points PointF
fillmode XFillMode
return void
    public void DrawPolygon(XBrush brush, PointF[] points, XFillMode fillmode)
    {
      DrawPolygon(brush, MakeXPointArray(points), fillmode);
    }
#endif

Same methods

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

Usage Example

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

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

      gfx.DrawPolygon(pen, XBrushes.LightCoral, GeometryObjects.GetPentagram(50, new XPoint(60, 70)), XFillMode.Winding);
      gfx.DrawPolygon(pen, XBrushes.LightCoral, GeometryObjects.GetPentagram(50, new XPoint(180, 70)), XFillMode.Alternate);
    }
All Usage Examples Of PdfSharp.Drawing.XGraphics::DrawPolygon