ID2D1RenderTarget::CreateSolidColorBrush method

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.

Syntax

HRESULT CreateSolidColorBrush(
  const D2D1_COLOR_F          *color,
  const D2D1_BRUSH_PROPERTIES *brushProperties,
  ID2D1SolidColorBrush        **solidColorBrush
);

Parameters

color

brushProperties

solidColorBrush

Return Value

None

Requirements

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

See Also

Brushes Overview

Direct2D QuickStart

ID2D1RenderTarget