public void FillPolygon (Polygon poly) { var count = poly.Points.Count; _c.MoveTo (poly.Points[0].X, poly.Points[0].Y); for (var i = 1; i < count; i++) { var p = poly.Points[i]; _c.AddLineToPoint (p.X, p.Y); } _c.ClosePath (); FillPath (); }
public void DrawPolygon (Polygon poly, float w) { _c.SetLineWidth (w); _c.MoveTo (poly.Points[0].X, poly.Points[0].Y); for (var i = 1; i < poly.Points.Count; i++) { var p = poly.Points[i]; _c.AddLineToPoint (p.X, p.Y); } _c.ClosePath (); _c.StrokePath (); }
public void FillPolygon (Polygon poly) { }
public void DrawPolygon (Polygon poly, float w) { }
public void DrawPolygon (Polygon poly, float w) { Write("<polygon stroke=\"{0}\" stroke-opacity=\"{1}\" stroke-width=\"{2}\" fill=\"none\" points=\"", _lastColor, _lastColorOp, w); foreach (var p in poly.Points) { Write("{0}", p.X); Write(","); Write("{0}", p.Y); Write(" "); } WriteLine("\" />"); }
public void DrawPolygon (Polygon poly, float w) { SelectNullBrush (); SelectPenRecord (w); StartRecord (Function.Polygon); rw.Write ((ushort)poly.Points.Count); foreach (var p in poly.Points) { WriteRecordCoord (p.Y, p.X); } EndRecord (); }
public void FillPolygon (Polygon poly) { var fill = _lastColor; if (this._grad != null) { fill = AddGradient (_grad, poly.BoundingBox); } Write("<polygon fill=\"{0}\" stroke=\"none\" points=\"", fill); foreach (var p in poly.Points) { Write("{0}", p.X); Write(","); Write ("{0}", p.Y); Write(" "); } WriteLine("\" />"); }
Path GetPolyPath (Polygon poly) { var p = poly.Tag as Path; if (p == null) { p = new Path (); p.MoveTo (poly.Points[0].X, poly.Points[0].Y); for (var i = 1; i < poly.Points.Count; i++) { var pt = poly.Points[i]; p.LineTo (pt.X, pt.Y); } p.LineTo (poly.Points[0].X, poly.Points[0].Y); poly.Tag = p; } return p; }
public void DrawPolygon (Polygon poly, float w) { _paints.Stroke.StrokeWidth = w; _c.DrawPath (GetPolyPath (poly), _paints.Stroke); }
public void FillPolygon (Polygon poly) { _c.DrawPath (GetPolyPath (poly), _paints.Fill); }
public void FillPolygon(Polygon poly) { }