SkiaCanvas.SetFillPaint(Paint, RectF) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.