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 ();
		}
Esempio n. 3
0
		public void FillPolygon (Polygon poly)
		{
		}
Esempio n. 4
0
		public void DrawPolygon (Polygon poly, float w)
		{
		}
Esempio n. 5
0
		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("\" />");
		}
Esempio n. 6
0
		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 ();
		}
Esempio n. 7
0
		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("\" />");
		}
Esempio n. 8
0
		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;
		}
Esempio n. 9
0
		public void DrawPolygon (Polygon poly, float w)
		{
			_paints.Stroke.StrokeWidth = w;
			_c.DrawPath (GetPolyPath (poly), _paints.Stroke);
		}
Esempio n. 10
0
		public void FillPolygon (Polygon poly)
		{
			_c.DrawPath (GetPolyPath (poly), _paints.Fill);
		}
Esempio n. 11
0
 public void FillPolygon(Polygon poly)
 {
 }