ColorF::ColorF(UINT32,FLOAT) method (d2d1helper.h)
Instantiates a new instance of the ColorF class that contains the specified RGB and alpha values.
Syntax
void ColorF(
UINT32 rgb,
FLOAT a
);
Parameters
rgb
Type: UINT32
The RGB value for the color to be constructed.
a
Type: FLOAT
The alpha value for the color to be constructed. An alpha channel value ranges from 0.0 to 1.0, where 0.0 represents a fully transparent color and 1.0 represents a fully opaque color. The default value is 1.0.
Return value
None
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | d2d1helper.h |
Library | D2d1.lib |
DLL | D2d1.dll |