Edit

ID2D1RenderTarget::CreateLinearGradientBrush methods

Creates an ID2D1LinearGradientBrush object for painting areas with a linear gradient.

Overload list

Method Description
CreateLinearGradientBrush(D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES&,ID2D1GradientStopCollection*,ID2D1LinearGradientBrush**) Creates an ID2D1LinearGradientBrush that contains the specified gradient stops, has no transform, and has a base opacity of 1.0.
CreateLinearGradientBrush(D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES&,D2D1_BRUSH_PROPERTIES&,ID2D1GradientStopCollection*,ID2D1LinearGradientBrush**) Creates an ID2D1LinearGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.
CreateLinearGradientBrush(D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES*,D2D1_BRUSH_PROPERTIES*,ID2D1GradientStopCollection*,ID2D1LinearGradientBrush**) Creates an ID2D1LinearGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.

Examples

For an example showing how to create a gradient stop collection and use it to define a linear gradient, see How to Create a Linear Gradient Brush.

Requirements

Requirement Value
Header
D2d1.h
Library
D2d1.lib
DLL
D2d1.dll

See also

ID2D1RenderTarget

CreateGradientStopCollection

ID2D1GradientStopCollection

ID2D1LinearGradientBrush

ID2D1RadialGradientBrush

How to Create a Linear Gradient Brush

Brushes Overview