Share via


GradientPaint Class

Definition

Represents an abstract base class for gradient paints that transition between multiple colors.

public ref class GradientPaint abstract : Microsoft::Maui::Graphics::Paint
public abstract class GradientPaint : Microsoft.Maui.Graphics.Paint
type GradientPaint = class
    inherit Paint
Public MustInherit Class GradientPaint
Inherits Paint
Inheritance
GradientPaint
Derived

Constructors

GradientPaint()

Initializes a new instance of the GradientPaint class with default white-to-white gradient stops.

GradientPaint(GradientPaint)

Initializes a new instance of the GradientPaint class by copying from another gradient paint.

Properties

BackgroundColor

Gets or sets the background color of the paint.

(Inherited from Paint)
EndColor
EndColorIndex
ForegroundColor

Gets or sets the foreground color of the paint.

(Inherited from Paint)
GradientStops
IsTransparent
StartColor
StartColorIndex

Methods

AddOffset(Single, Color)
AddOffset(Single)
BlendStartAndEndColors()
BlendStartAndEndColors(Color, Color, Single)
GetColorAt(Single)
GetSortedStops()
RemoveOffset(Int32)
SetGradientStops(Single[], Color[])
ToString()

Extension Methods

IsNullOrEmpty(Paint)
ToColor(Paint)

Applies to