Class PenikoBrush
Namespace: VelloSharp
Assembly: VelloSharp.dll
public sealed class PenikoBrush : IDisposable
Inheritance
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Properties
Kind
public PenikoBrushKind Kind { get; }
Property Value
Methods
Clone()
public PenikoBrush Clone()
Returns
CreateLinear(PenikoLinearGradient, PenikoExtend, ReadOnlySpan<PenikoColorStop>)
public static PenikoBrush CreateLinear(PenikoLinearGradient gradient, PenikoExtend extend, ReadOnlySpan<PenikoColorStop> stops)
Parameters
gradient
PenikoLinearGradient
extend
PenikoExtend
stops
ReadOnlySpan<PenikoColorStop>
Returns
CreateRadial(PenikoRadialGradient, PenikoExtend, ReadOnlySpan<PenikoColorStop>)
public static PenikoBrush CreateRadial(PenikoRadialGradient gradient, PenikoExtend extend, ReadOnlySpan<PenikoColorStop> stops)
Parameters
gradient
PenikoRadialGradient
extend
PenikoExtend
stops
ReadOnlySpan<PenikoColorStop>
Returns
CreateSolid(VelloColor)
public static PenikoBrush CreateSolid(VelloColor color)
Parameters
color
VelloColor
Returns
CreateSweep(PenikoSweepGradient, PenikoExtend, ReadOnlySpan<PenikoColorStop>)
public static PenikoBrush CreateSweep(PenikoSweepGradient gradient, PenikoExtend extend, ReadOnlySpan<PenikoColorStop> stops)
Parameters
gradient
PenikoSweepGradient
extend
PenikoExtend
stops
ReadOnlySpan<PenikoColorStop>
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
~PenikoBrush()
protected ~PenikoBrush()
GetGradientKind()
public PenikoGradientKind? GetGradientKind()
Returns
GetLinearGradient()
public PenikoLinearGradientInfo GetLinearGradient()
Returns
GetRadialGradient()
public PenikoRadialGradientInfo GetRadialGradient()
Returns
GetSolidColor()
public VelloColor GetSolidColor()
Returns
GetSweepGradient()
public PenikoSweepGradientInfo GetSweepGradient()
Returns
MultiplyAlpha(float)
public void MultiplyAlpha(float alpha)
Parameters
alpha
float
WithAlpha(float)
public void WithAlpha(float alpha)
Parameters
alpha
float