ID2D1RenderTarget::CreateGradientStopCollection method

Creates an ID2D1GradientStopCollection from the specified array of D2D1_GRADIENT_STOP structures.

Overload list

Method Description
CreateGradientStopCollection(D2D1_GRADIENT_STOP*,D2D1_GAMMA,D2D1_EXTEND_MODE,ID2D1GradientStopCollection**) Creates an ID2D1GradientStopCollection from the specified gradient stops, color interpolation gamma, and extend mode.
CreateGradientStopCollection(D2D1_GRADIENT_STOP*,ID2D1GradientStopCollection**) Creates an ID2D1GradientStopCollection from the specified gradient stops that uses the D2D1_GAMMA_2_2 color interpolation gamma and the clamp extend mode.

Syntax

HRESULT CreateGradientStopCollection(
  const D2D1_GRADIENT_STOP    *gradientStops,
  UINT32                      gradientStopsCount,
  D2D1_GAMMA                  colorInterpolationGamma,
  D2D1_EXTEND_MODE            extendMode,
  ID2D1GradientStopCollection **gradientStopCollection
);

Parameters

gradientStops

gradientStopsCount

colorInterpolationGamma

extendMode

gradientStopCollection

Return Value

None

Requirements

   
Target Platform Windows
Header d2d1.h (include D2d1.h)
Library D2d1.lib
DLL D2d1.dll

See Also

Brushes Overview

D2D1_GRADIENT_STOP

How to Create a Linear Gradient Brush

How to Create a Radial Gradient Brush

ID2D1RenderTarget