Пример #1
0
        public void FillPolygon(PortableColor color, PointInt32[] points)
        {
            var clone = new Point[points.Length];

            for (var i = 0; i < points.Length; i++)
            {
                clone[i] = new Point(points[i].X, points[i].Y);
            }
            _graphics.FillPolygon(new SolidBrush(color.ToColor()), clone);
        }
Пример #2
0
 public void DrawRectangle(PortableColor color, int x, int y, int width, int height)
 {
     _graphics.DrawRectangle(new Pen(color.ToColor()), x, y, width, height);
 }
Пример #3
0
 public void FillEllipse(PortableColor color, int x, int y, int width, int height)
 {
     _graphics.FillEllipse(new SolidBrush(color.ToColor()), x, y, width, height);
 }
Пример #4
0
 public void DrawLine(PortableColor color, int x1, int y1, int x2, int y2)
 {
     _graphics.DrawLine(new Pen(color.ToColor()), x1, y1, x2, y2);
 }