Class D2D1GradientStopCollection
Represents an collection of D2D1GradientStop objects for linear and radial gradient brushes.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
[SecurityCritical]
public class D2D1GradientStopCollection : D2D1Resource, IDisposable
Constructors
| Edit this page View SourceD2D1GradientStopCollection(nint)
Initializes a new instance of the D2D1GradientStopCollection class.
Declaration
public D2D1GradientStopCollection(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceD2D1GradientStopCollectionGuid
The interface GUID.
Declaration
public static readonly Guid D2D1GradientStopCollectionGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Properties
| Edit this page View SourceColorInterpolationGamma
Gets the gamma space in which the gradient stops are interpolated.
Declaration
public D2D1Gamma ColorInterpolationGamma { get; }
Property Value
| Type | Description |
|---|---|
| D2D1Gamma |
ExtendMode
Gets the behavior of the gradient outside the normalized gradient range.
Declaration
public D2D1ExtendMode ExtendMode { get; }
Property Value
| Type | Description |
|---|---|
| D2D1ExtendMode |
Methods
| Edit this page View SourceGetGradientStopCount()
Retrieves the number of gradient stops in the collection.
Declaration
public uint GetGradientStopCount()
Returns
| Type | Description |
|---|---|
| uint | The number of gradient stops in the collection. |
GetGradientStops()
Copies the gradient stops from the collection into an array of D2D1GradientStop structures.
Declaration
public D2D1GradientStop[] GetGradientStops()
Returns
| Type | Description |
|---|---|
| D2D1GradientStop[] | The collection's gradient stops. |
GetGradientStops(Span<D2D1GradientStop>)
Copies the gradient stops from the collection into an array of D2D1GradientStop structures.
Declaration
public void GetGradientStops(Span<D2D1GradientStop> gradientStops)
Parameters
| Type | Name | Description |
|---|---|---|
| Span<D2D1GradientStop> | gradientStops | The collection's gradient stops. |