[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.GradientStopCollection

Class GradientStopCollection

Namespace
GrapeCity.Documents.DX.Direct2D
Assembly
GcDocs.DX.Windows.dll

ID2D1GradientStopCollection

[Guid("2cd906a7-12e2-11dc-9fed-001143a055f9")]
public class GradientStopCollection : Resource, IDisposable, IUnknown
Inheritance
object
GradientStopCollection
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

GradientStopCollection(IntPtr)

Initializes a new instance of the GradientStopCollection class.

public GradientStopCollection(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

Create(RenderTarget, GradientStop[], ExtendMode)

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

public static GradientStopCollection Create(RenderTarget renderTarget, GradientStop[] gradientStops, ExtendMode extendMode)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

gradientStops GradientStop[]

A pointer to an array of D2D1_GRADIENT_STOP structures.

extendMode ExtendMode

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

Returns

GradientStopCollection

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

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)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

gradientStops GradientStop[]

A pointer to an array of D2D1_GRADIENT_STOP structures.

colorInterpolationGamma Gamma

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

GradientStopCollection

Create(RenderTarget, GradientStop[], Gamma)

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

public static GradientStopCollection Create(RenderTarget renderTarget, GradientStop[] gradientStops, Gamma colorInterpolationGamma)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

gradientStops GradientStop[]

A pointer to an array of D2D1_GRADIENT_STOP structures.

colorInterpolationGamma Gamma

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

Returns

GradientStopCollection

Create(RenderTarget, GradientStop[])

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

public static GradientStopCollection Create(RenderTarget renderTarget, GradientStop[] gradientStops)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

gradientStops GradientStop[]

A pointer to an array of D2D1_GRADIENT_STOP structures.

Returns

GradientStopCollection

GetColorInterpolationGamma()

D2D1_GAMMA ID2D1GradientStopCollection::GetColorInterpolationGamma()

public Gamma GetColorInterpolationGamma()

Returns

Gamma

GetExtendMode()

D2D1_EXTEND_MODE ID2D1GradientStopCollection::GetExtendMode()

public ExtendMode GetExtendMode()

Returns

ExtendMode

GetGradientStopCount()

unsigned int ID2D1GradientStopCollection::GetGradientStopCount()

public int GetGradientStopCount()

Returns

int

GetGradientStops(GradientStop[], int)

void ID2D1GradientStopCollection::GetGradientStops([Out, Buffer] D2D1_GRADIENT_STOP* gradientStops,[In] unsigned int gradientStopsCount)

public void GetGradientStops(GradientStop[] gradientStops, int gradientStopsCount)

Parameters

gradientStops GradientStop[]
gradientStopsCount int

Operators

explicit operator GradientStopCollection(IntPtr)

Performs an explicit conversion from System.IntPtr to GradientStopCollection.

public static explicit operator GradientStopCollection(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

GradientStopCollection