ColorF class (d2d1helper.h)

Defines a set of constants that represents known colors and provides convenience methods for instantiating different colors.

Inheritance

The ColorF class implements D2D1_COLOR_F.

Methods

The ColorF class has these methods.

 
ColorF::ColorF

Instantiates a new instance of the ColorF class that contains the specified red, green, blue, and alpha values.
ColorF::ColorF

Instantiates a new instance of the ColorF class that contains the specified RGB and alpha values.

Requirements

Requirement Value
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 d2d1helper.h (include D2d1helper.h)

See also

D2D1_COLOR_F