[]
ID2D1GradientStopCollection
[Guid("2cd906a7-12e2-11dc-9fed-001143a055f9")]
public class GradientStopCollection : Resource, IDisposable, IUnknown
Initializes a new instance of the GradientStopCollection class.
public GradientStopCollection(IntPtr nativePtr)
nativePtr System.IntPtrThe native pointer.
Creates an GradientStopCollection from the specified gradient stops, color Gamma.StandardRgb, and extend mode.
public static GradientStopCollection Create(RenderTarget renderTarget, GradientStop[] gradientStops, ExtendMode extendMode)
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.
Creates an GradientStopCollection from the specified gradient stops, color interpolation gamma, and extend mode.
public static GradientStopCollection Create(RenderTarget renderTarget, GradientStop[] gradientStops, Gamma colorInterpolationGamma, ExtendMode extendMode)
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.
Creates an GradientStopCollection from the specified gradient stops, color interpolation gamma, and ExtendMode.Clamp.
public static GradientStopCollection Create(RenderTarget renderTarget, GradientStop[] gradientStops, Gamma colorInterpolationGamma)
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.
Creates an GradientStopCollection from the specified gradient stops, a Gamma StandardRgb, and ExtendMode.Clamp.
public static GradientStopCollection Create(RenderTarget renderTarget, GradientStop[] gradientStops)
renderTarget RenderTargetan instance of RenderTarget
gradientStops GradientStop[]A pointer to an array of D2D1_GRADIENT_STOP structures.
D2D1_GAMMA ID2D1GradientStopCollection::GetColorInterpolationGamma()
public Gamma GetColorInterpolationGamma()
D2D1_EXTEND_MODE ID2D1GradientStopCollection::GetExtendMode()
public ExtendMode GetExtendMode()
unsigned int ID2D1GradientStopCollection::GetGradientStopCount()
public int GetGradientStopCount()
void ID2D1GradientStopCollection::GetGradientStops([Out, Buffer] D2D1_GRADIENT_STOP* gradientStops,[In] unsigned int gradientStopsCount)
public void GetGradientStops(GradientStop[] gradientStops, int gradientStopsCount)
gradientStops GradientStop[]gradientStopsCount intPerforms an explicit conversion from System.IntPtr to GradientStopCollection.
public static explicit operator GradientStopCollection(IntPtr nativePointer)
nativePointer System.IntPtr