ColorF::ColorF(FLOAT,FLOAT,FLOAT,FLOAT) method (d2d1helper.h)
Instantiates a new instance of the ColorF class that contains the specified red, green, blue, and alpha values.
Syntax
void ColorF(
FLOAT red,
FLOAT green,
FLOAT blue,
FLOAT alpha
);
Parameters
red
Type: FLOAT
The red component of the color to be constructed.
green
Type: FLOAT
The green component of the color to be constructed.
blue
Type: FLOAT
The blue component of the color to be constructed.
alpha
Type: FLOAT
The alpha value of 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. This parameter is optional, and if omitted defaults to 1.0 (fully opaque).
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 |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for