Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |
|
| Library |
|
| DLL |
|