[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.GradientStopCollection.Create

Create Method

Create(RenderTarget, GradientStop[])

Creates an GradientStopCollection from the specified gradient stops, a Gamma StandardRgb, and ExtendMode.Clamp.

Declaration
public static GradientStopCollection Create(RenderTarget renderTarget, GradientStop[] gradientStops)
Public Shared Function Create(renderTarget As RenderTarget, gradientStops As GradientStop()) As GradientStopCollection
Parameters
Type Name Description
RenderTarget renderTarget

an instance of RenderTarget

GradientStop[] gradientStops

A pointer to an array of D2D1_GRADIENT_STOP structures.

Returns
Type Description
GradientStopCollection

Create(RenderTarget, GradientStop[], ExtendMode)

Creates an GradientStopCollection from the specified gradient stops, color Gamma.StandardRgb, and extend mode.

Declaration
public static GradientStopCollection Create(RenderTarget renderTarget, GradientStop[] gradientStops, ExtendMode extendMode)
Public Shared Function Create(renderTarget As RenderTarget, gradientStops As GradientStop(), extendMode As ExtendMode) As GradientStopCollection
Parameters
Type Name Description
RenderTarget renderTarget

an instance of RenderTarget

GradientStop[] gradientStops

A pointer to an array of D2D1_GRADIENT_STOP structures.

ExtendMode extendMode

The behavior of the gradient outside the [0,1] normalized range.

Returns
Type Description
GradientStopCollection

Create(RenderTarget, GradientStop[], Gamma)

Creates an GradientStopCollection from the specified gradient stops, color interpolation gamma, and ExtendMode.Clamp.

Declaration
public static GradientStopCollection Create(RenderTarget renderTarget, GradientStop[] gradientStops, Gamma colorInterpolationGamma)
Public Shared Function Create(renderTarget As RenderTarget, gradientStops As GradientStop(), colorInterpolationGamma As Gamma) As GradientStopCollection
Parameters
Type Name Description
RenderTarget renderTarget

an instance of RenderTarget

GradientStop[] gradientStops

A pointer to an array of D2D1_GRADIENT_STOP structures.

Gamma colorInterpolationGamma

The space in which color interpolation between the gradient stops is performed.

Returns
Type Description
GradientStopCollection

Create(RenderTarget, GradientStop[], Gamma, ExtendMode)

Creates an GradientStopCollection from the specified gradient stops, color interpolation gamma, and extend mode.

Declaration
public static GradientStopCollection Create(RenderTarget renderTarget, GradientStop[] gradientStops, Gamma colorInterpolationGamma, ExtendMode extendMode)
Public Shared Function Create(renderTarget As RenderTarget, gradientStops As GradientStop(), colorInterpolationGamma As Gamma, extendMode As ExtendMode) As GradientStopCollection
Parameters
Type Name Description
RenderTarget renderTarget

an instance of RenderTarget

GradientStop[] gradientStops

A pointer to an array of D2D1_GRADIENT_STOP structures.

Gamma colorInterpolationGamma

The space in which color interpolation between the gradient stops is performed.

ExtendMode extendMode

The behavior of the gradient outside the [0,1] normalized range.

Returns
Type Description
GradientStopCollection