Share via


SkiaCanvas.SetFillPaint(Paint, RectF) Method

Definition

Sets the fill paint for the canvas.

public:
 override void SetFillPaint(Microsoft::Maui::Graphics::Paint ^ paint, Microsoft::Maui::Graphics::RectF rectangle);
public override void SetFillPaint(Microsoft.Maui.Graphics.Paint paint, Microsoft.Maui.Graphics.RectF rectangle);
override this.SetFillPaint : Microsoft.Maui.Graphics.Paint * Microsoft.Maui.Graphics.RectF -> unit
Public Overrides Sub SetFillPaint (paint As Paint, rectangle As RectF)

Parameters

paint
Paint

The paint to use for filling. If null, white color will be used.

rectangle
RectF

The rectangle that defines the coordinate space for the paint.

Remarks

This method handles different types of paints including SolidPaint, LinearGradientPaint, RadialGradientPaint, PatternPaint, and ImagePaint.

Applies to