ID2D1DeviceContext.CreateGradientStopCollection

<summary> A gradient stop collection represents a set of stops in an ideal unit length. This is the source resource for a linear gradient and radial gradient brush. </summary> <param name="preInterpolationSpace">Specifies both the input color space and the space in which the color interpolation occurs.</param> <param name="postInterpolationSpace">Specifies the color space colors will be converted to after interpolation occurs.</param> <param name="bufferPrecision">Specifies the precision in which the gradient buffer will be held.</param> <param name="extendMode">Specifies how the gradient will be extended outside of the unit length.</param> <param name="colorInterpolationMode">Determines if colors will be interpolated in straight alpha or premultiplied alpha space.</param>

  1. HRESULT CreateGradientStopCollection(const(D2D1_GRADIENT_STOP)* straightAlphaGradientStops, UINT32 straightAlphaGradientStopsCount, D2D1_COLOR_SPACE preInterpolationSpace, D2D1_COLOR_SPACE postInterpolationSpace, D2D1_BUFFER_PRECISION bufferPrecision, D2D1_EXTEND_MODE extendMode, D2D1_COLOR_INTERPOLATION_MODE colorInterpolationMode, ID2D1GradientStopCollection1* gradientStopCollection1)
  2. HRESULT CreateGradientStopCollection(const(D2D1_GRADIENT_STOP)* gradientStops, UINT32 gradientStopsCount, D2D1_GAMMA colorInterpolationGamma, D2D1_EXTEND_MODE extendMode, ID2D1GradientStopCollection* gradientStopCollection)

Meta