Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the color and opacity of the bitmap.
Syntax
HRESULT SetColor(
[in, ref] const D2D1_VECTOR_4F &color
);
Parameters
color [in, ref]
Type: const D2D1_VECTOR_4FThe color and opacity of the bitmap. The individual values for each channel are of type FLOAT, unbounded and unitless. The RGBA values for each channel range from 0 to 1.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Header |
Dcomp.h |
Library |
Dcomp.lib |
DLL |
Dcomp.dll |