GradientPaint 类

定义

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
继承
GradientPaint
派生

构造函数

GradientPaint()
GradientPaint(GradientPaint)

属性

BackgroundColor (继承自 Paint)
EndColor
EndColorIndex
ForegroundColor (继承自 Paint)
GradientStops
IsTransparent
StartColor
StartColorIndex

方法

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

扩展方法

IsNullOrEmpty(Paint)
ToColor(Paint)

适用于