Ejemplo n.º 1
0
        void SetPaint(APaint platformPaint, GPaint paint)
        {
            if (paint is LinearGradientPaint linearGradientPaint)
            {
                SetLinearGradientPaint(platformPaint, linearGradientPaint);
            }

            if (paint is RadialGradientPaint radialGradientPaint)
            {
                SetRadialGradientPaint(platformPaint, radialGradientPaint);
            }
        }
Ejemplo n.º 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));
 }
Ejemplo n.º 3
0
 public void SetFillPaint(Paint paint, RectangleF rectangle)
 {
     _commands.Add(canvas => canvas.SetFillPaint(paint, rectangle));
 }
Ejemplo n.º 4
0
 public void SetFillPaint(Paint paint, PointF point1, PointF point2)
 {
     _commands.Add(canvas => canvas.SetFillPaint(paint, point1, point2));
 }