ID2D1SolidColorBrush::SetColor method

Specifies the color of this solid color brush.

Syntax

void SetColor(
  const D2D1_COLOR_F *color
);

Parameters

color

Type: const D2D1_COLOR_F*

The color of this solid color brush.

Return value

This method does not return a value.

Remarks

To help create colors, Direct2D provides the ColorF class. It offers several helper methods for creating colors and provides a set or predefined colors.

Requirements

   
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1.h
Library D2d1.lib
DLL D2d1.dll

See also

ID2D1SolidColorBrush