Edit

ID2D1RenderTarget::CreateSolidColorBrush methods

Creates a new ID2D1SolidColorBrush that can be used to paint areas with a solid color.

Overload list

Method Description
CreateSolidColorBrush(D2D1_COLOR_F&,ID2D1SolidColorBrush**) Creates a new ID2D1SolidColorBrush that has the specified color and a base opacity of 1.0f.
CreateSolidColorBrush(D2D1_COLOR_F&,D2D1_BRUSH_PROPERTIES&,ID2D1SolidColorBrush**) Creates a new ID2D1SolidColorBrush that has the specified color and opacity.
CreateSolidColorBrush(D2D1_COLOR_F*,D2D1_BRUSH_PROPERTIES*,ID2D1SolidColorBrush**) Creates a new ID2D1SolidColorBrush that has the specified color and opacity.

Examples

For an example, see How to Create a Solid Color Brush.

Requirements

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

See also

ID2D1RenderTarget

Brushes Overview

Direct2D QuickStart