Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID2D1RenderTarget::CreateLinearGradientBrush methods

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

Overload list

MethodDescription
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

Library

D2d1.lib

DLL

D2d1.dll

See also

ID2D1RenderTarget
CreateGradientStopCollection
ID2D1GradientStopCollection
ID2D1LinearGradientBrush
ID2D1RadialGradientBrush
How to Create a Linear Gradient Brush
Brushes Overview

 

 

Show:
© 2017 Microsoft