[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.GradientStopCollection1

Class GradientStopCollection1

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

ID2D1GradientStopCollection1

[Guid("ae1572f4-5dd0-4777-998b-9279472ae63b")]
public class GradientStopCollection1 : GradientStopCollection, IDisposable, IUnknown
Inheritance
object
GradientStopCollection1
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

GradientStopCollection1(IntPtr)

Initializes a new instance of the GradientStopCollection1 class.

public GradientStopCollection1(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

Create(DeviceContext, GradientStop[], ColorSpace, ColorSpace, BufferPrecision, ExtendMode, ColorInterpolationMode)

Initializes a new instance of the GradientStopCollection1 class.

public static GradientStopCollection1 Create(DeviceContext context, GradientStop[] straightAlphaGradientStops, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode)

Parameters

context DeviceContext

The context.

straightAlphaGradientStops GradientStop[]

An array of color values and offsets.

preInterpolationSpace ColorSpace

Specifies both the input color space and the space in which the color interpolation occurs.

postInterpolationSpace ColorSpace

The color space that colors will be converted to after interpolation occurs.

bufferPrecision BufferPrecision

The precision of the texture used to hold interpolated values.

extendMode ExtendMode

Defines how colors outside of the range defined by the stop collection are determined.

colorInterpolationMode ColorInterpolationMode

The new gradient stop collection.

Returns

GradientStopCollection1

Remarks

This method linearly interpolates between the color stops. An optional color space conversion is applied after interpolation. Whether and how this gamma conversion is applied is determined before and after interpolation. This method will fail if the device context does not support the requested buffer precision.Additional ReferencesD2D1_GRADIENT_STOP, D2D1_GAMMA_CONVERSION, BufferPrecision, ExtendMode, GradientStopCollectionRequirementsMinimum supported operating systemSame as Interface / Class Highest IRQL levelN/A (user mode) Callable from DlllMain()No Callable from services and session 0Yes Callable from UI threadYes?

GetBufferPrecision()

D2D1_BUFFER_PRECISION ID2D1GradientStopCollection1::GetBufferPrecision()

public BufferPrecision GetBufferPrecision()

Returns

BufferPrecision

GetColorInterpolationMode()

D2D1_COLOR_INTERPOLATION_MODE ID2D1GradientStopCollection1::GetColorInterpolationMode()

public ColorInterpolationMode GetColorInterpolationMode()

Returns

ColorInterpolationMode

GetGradientStops1(GradientStop[], int)

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

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

Parameters

gradientStops GradientStop[]
gradientStopsCount int

GetPostInterpolationSpace()

D2D1_COLOR_SPACE ID2D1GradientStopCollection1::GetPostInterpolationSpace()

public ColorSpace GetPostInterpolationSpace()

Returns

ColorSpace

GetPreInterpolationSpace()

D2D1_COLOR_SPACE ID2D1GradientStopCollection1::GetPreInterpolationSpace()

public ColorSpace GetPreInterpolationSpace()

Returns

ColorSpace

Operators

explicit operator GradientStopCollection1(IntPtr)

Performs an explicit conversion from System.IntPtr to GradientStopCollection1.

public static explicit operator GradientStopCollection1(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

GradientStopCollection1