Example #1
0
        void SetPaint(APaint platformPaint, GPaint paint)
        {
            if (paint is LinearGradientPaint linearGradientPaint)
            {
                SetLinearGradientPaint(platformPaint, linearGradientPaint);
            }

            if (paint is RadialGradientPaint radialGradientPaint)
            {
                SetRadialGradientPaint(platformPaint, radialGradientPaint);
            }
        }
Example #2
0
 public void SetFillPaint(Paint paint, float x1, float y1, float x2, float y2)
 {
     _commands.Add(canvas => canvas.SetFillPaint(paint, x1, y1, x2, y2));
 }
Example #3
0
 public void SetFillPaint(Paint paint, RectangleF rectangle)
 {
     _commands.Add(canvas => canvas.SetFillPaint(paint, rectangle));
 }
Example #4
0
 public void SetFillPaint(Paint paint, PointF point1, PointF point2)
 {
     _commands.Add(canvas => canvas.SetFillPaint(paint, point1, point2));
 }