Document Solutions for PDF
DS.Documents.DX.Windows Assembly / GrapeCity.Documents.DX.Direct2D Namespace / GradientStopCollection1 Class / Create Method
The context.
An array of color values and offsets.
Specifies both the input color space and the space in which the color interpolation occurs.
The color space that colors will be converted to after interpolation occurs.
The precision of the texture used to hold interpolated values.
Defines how colors outside of the range defined by the stop collection are determined.
The new gradient stop collection.

In This Topic
    Create Method (GradientStopCollection1)
    In This Topic
    Initializes a new instance of the GradientStopCollection1 class.
    Syntax

    Parameters

    context
    The context.
    straightAlphaGradientStops
    An array of color values and offsets.
    preInterpolationSpace
    Specifies both the input color space and the space in which the color interpolation occurs.
    postInterpolationSpace
    The color space that colors will be converted to after interpolation occurs.
    bufferPrecision
    The precision of the texture used to hold interpolated values.
    extendMode
    Defines how colors outside of the range defined by the stop collection are determined.
    colorInterpolationMode
    The new gradient stop collection.
    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?
    See Also