Class GradientStopCollection
[Guid("2cd906a7-12e2-11dc-9fed-001143a055f9")]
public class GradientStopCollection : Resource
- Inheritance
-
GradientStopCollection
- Derived
- Inherited Members
Constructors
GradientStopCollection(RenderTarget, GradientStop[])
Creates an GradientStopCollection from the specified gradient stops, a Gamma StandardRgb, and ExtendMode.Clamp.
public GradientStopCollection(RenderTarget renderTarget, GradientStop[] gradientStops)
Parameters
renderTarget
RenderTargetan instance of RenderTarget
gradientStops
GradientStop[]A pointer to an array of D2D1_GRADIENT_STOP structures.
GradientStopCollection(RenderTarget, GradientStop[], ExtendMode)
Creates an GradientStopCollection from the specified gradient stops, color Gamma.StandardRgb, and extend mode.
public GradientStopCollection(RenderTarget renderTarget, GradientStop[] gradientStops, ExtendMode extendMode)
Parameters
renderTarget
RenderTargetan instance of RenderTarget
gradientStops
GradientStop[]A pointer to an array of D2D1_GRADIENT_STOP structures.
extendMode
ExtendModeThe behavior of the gradient outside the [0,1] normalized range.
GradientStopCollection(RenderTarget, GradientStop[], Gamma)
Creates an GradientStopCollection from the specified gradient stops, color interpolation gamma, and ExtendMode.Clamp.
public GradientStopCollection(RenderTarget renderTarget, GradientStop[] gradientStops, Gamma colorInterpolationGamma)
Parameters
renderTarget
RenderTargetan instance of RenderTarget
gradientStops
GradientStop[]A pointer to an array of D2D1_GRADIENT_STOP structures.
colorInterpolationGamma
GammaThe space in which color interpolation between the gradient stops is performed.
GradientStopCollection(RenderTarget, GradientStop[], Gamma, ExtendMode)
Creates an GradientStopCollection from the specified gradient stops, color interpolation gamma, and extend mode.
public GradientStopCollection(RenderTarget renderTarget, GradientStop[] gradientStops, Gamma colorInterpolationGamma, ExtendMode extendMode)
Parameters
renderTarget
RenderTargetan instance of RenderTarget
gradientStops
GradientStop[]A pointer to an array of D2D1_GRADIENT_STOP structures.
colorInterpolationGamma
GammaThe space in which color interpolation between the gradient stops is performed.
extendMode
ExtendModeThe behavior of the gradient outside the [0,1] normalized range.
GradientStopCollection(nint)
public GradientStopCollection(nint nativePtr)
Parameters
nativePtr
nint
Properties
ColorInterpolationGamma
Indicates the gamma space in which the gradient stops are interpolated.
public Gamma ColorInterpolationGamma { get; }
Property Value
ExtendMode
Indicates the behavior of the gradient outside the normalized gradient range.
public ExtendMode ExtendMode { get; }
Property Value
GradientStopCount
Retrieves the number of gradient stops in the collection.
public int GradientStopCount { get; }
Property Value
Methods
GetGradientStops(GradientStop[], int)
Copies the gradient stops from the collection into an array of GradientStop structures.
public void GetGradientStops(GradientStop[] gradientStops, int gradientStopsCount)
Parameters
gradientStops
GradientStop[]No documentation.
gradientStopsCount
intNo documentation.
Remarks
Gradient stops are copied in order of position, starting with the gradient stop with the smallest position value and progressing to the gradient stop with the largest position value.
Operators
explicit operator GradientStopCollection(nint)
public static explicit operator GradientStopCollection(nint nativePtr)
Parameters
nativePtr
nint