Пример #1
0
 public void DrawPolygon(Polygon poly, float w)
 {
 }
Пример #2
0
 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("\" />");
 }
Пример #3
0
 public void FillPolygon(Polygon poly)
 {
 }
Пример #4
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;
 }
Пример #5
0
 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("\" />");
 }
Пример #6
0
 public void FillPolygon(Polygon poly)
 {
     _c.DrawPath (GetPolyPath (poly), _paints.Fill);
 }
Пример #7
0
 public void DrawPolygon(Polygon poly, float w)
 {
     _paints.Stroke.StrokeWidth = w;
     _c.DrawPath (GetPolyPath (poly), _paints.Stroke);
 }
Пример #8
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 ();
        }
Пример #9
0
 public void DrawPolygon(Polygon poly, float w)
 {
     _eshape.DrawPolygon(poly, w);
 }
Пример #10
0
 public void FillPolygon(Polygon poly)
 {
     _eshape.FillPolygon(poly);
 }