public void FillPolygon(Brush brushh, PointF[] list)
        {
            var path = new SKPath();

            path.AddPoly(list.Select(a => new SKPoint(a.X, a.Y)).ToArray());
            _image.DrawPath(path, brushh.SKPaint());
        }
        public void FillPolygon(Brush brush, Point[] points, FillMode fillMode)
        {
            var path = new SKPath();

            path.AddPoly(points.Select(a => new SKPoint(a.X, a.Y)).ToArray());
            _image.DrawPath(path, brush.SKPaint());
        }
        public void FillPie(Brush brush, 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, brush.SKPaint());
        }
        public void FillPath(Brush fill, GraphicsPath graphicsPath)
        {
            if (graphicsPath.PointCount == 0)
            {
                return;
            }

            _image.DrawPath(pathtopintfarr(graphicsPath), fill.SKPaint());
        }
        public void DrawString(string s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format)
        {
            var pnt = brush.SKPaint();
            // Find the text bounds
            SKRect textBounds = SKRect.Empty;
            var    fnt        = font.SKPaint();

            fnt.MeasureText(s, ref textBounds);

            pnt.TextSize = fnt.TextSize;
            pnt.Typeface = fnt.Typeface;

            pnt.StrokeWidth = 1;
            _image.DrawText(s, layoutRectangle.X, layoutRectangle.Y + textBounds.Height, pnt);
        }
 public void FillRectangle(Brush brush, float x, float y, float width, float height)
 {
     _image.DrawRect(new SKRect(x, y, x + width, y + height), brush.SKPaint());
 }