public void DrawPolygon(Polygon poly, float w) { }
public void FillPolygon(Polygon poly) { Write("<polygon fill=\"{0}\" stroke=\"none\" points=\"", _lastColor); foreach (var p in poly.Points) { Write("{0}", p.X); Write(","); Write ("{0}", p.Y); Write(" "); } WriteLine("\" />"); }
public void FillPolygon(Polygon poly) { }
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) { Write("<polygon stroke=\"{0}\" stroke-width=\"{1}\" fill=\"none\" points=\"", _lastColor, w); foreach (var p in poly.Points) { Write("{0}", p.X); Write(","); Write("{0}", p.Y); Write(" "); } WriteLine("\" />"); }
public void FillPolygon(Polygon poly) { _c.DrawPath (GetPolyPath (poly), _paints.Fill); }
public void DrawPolygon(Polygon poly, float w) { _paints.Stroke.StrokeWidth = w; _c.DrawPath (GetPolyPath (poly), _paints.Stroke); }
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 DrawPolygon(Polygon poly, float w) { _eshape.DrawPolygon(poly, w); }
public void FillPolygon(Polygon poly) { _eshape.FillPolygon(poly); }