void SetPaint(APaint platformPaint, GPaint paint) { if (paint is LinearGradientPaint linearGradientPaint) { SetLinearGradientPaint(platformPaint, linearGradientPaint); } if (paint is RadialGradientPaint radialGradientPaint) { SetRadialGradientPaint(platformPaint, radialGradientPaint); } }
public void SetFillPaint(Paint paint, float x1, float y1, float x2, float y2) { _commands.Add(canvas => canvas.SetFillPaint(paint, x1, y1, x2, y2)); }
public void SetFillPaint(Paint paint, RectangleF rectangle) { _commands.Add(canvas => canvas.SetFillPaint(paint, rectangle)); }
public void SetFillPaint(Paint paint, PointF point1, PointF point2) { _commands.Add(canvas => canvas.SetFillPaint(paint, point1, point2)); }