public void DrawPolygon(Pen pen, PointF[] points)
        {
            var path = new SKPath();

            path.AddPoly(points.Select(a => new SKPoint(a.X, a.Y)).ToArray());
            _image.DrawPath(path, pen.SKPaint());
        }
        public void DrawPie(Pen pen, float x, float y, float width, float height, float startAngle, float sweepAngle)
        {
            var path = new SKPath();

            path.AddArc(new SKRect(x, y, x + width, y + height), startAngle, sweepAngle);
            _image.DrawPath(path, pen.SKPaint());
        }
        public void DrawArc(Pen pen, int x, int y, int width, int height, int startAngle, int sweepAngle)
        {
            var path = new SKPath();

            path.AddArc(new SKRect(x, y, x + width, y + height), startAngle, sweepAngle);
            _image.DrawPath(path, pen.SKPaint());
        }
        public void DrawPath(Pen stroke, GraphicsPath graphicsPath)
        {
            if (graphicsPath.PointCount == 0)
            {
                return;
            }

            _image.DrawPath(pathtopintfarr(graphicsPath), stroke.SKPaint());
        }
 public void DrawLine(Pen pen, float x1, float y1, float x2, float y2)
 {
     _image.DrawLine(x1, y1, x2, y2, pen.SKPaint());
 }
 public void DrawRectangle(Pen pen, float x, float y, float width, float height)
 {
     _image.DrawRect(new SKRect(x, y, x + width, y + height), pen.SKPaint());
 }