Public Member Functions | |
| HRESULT | Clear (void) |
| HRESULT | GetRed ([out, retval] float *pVal) |
| HRESULT | SetRed ([in] float newVal) |
| HRESULT | GetGreen ([out, retval] float *pVal) |
| HRESULT | SetGreen ([in] float newVal) |
| HRESULT | GetBlue ([out, retval] float *pVal) |
| HRESULT | SetBlue ([in] float newVal) |
| HRESULT | GetAlpha ([out, retval] float *pVal) |
| HRESULT | SetAlpha ([in] float newVal) |
| HRESULT | GetRed8 ([out, retval] RtBYTE *pVal) |
| HRESULT | SetRed8 ([in] RtBYTE newVal) |
| HRESULT | GetGreen8 ([out, retval] RtBYTE *pVal) |
| HRESULT | SetGreen8 ([in] RtBYTE newVal) |
| HRESULT | GetBlue8 ([out, retval] RtBYTE *pVal) |
| HRESULT | SetBlue8 ([in] RtBYTE newVal) |
| HRESULT | GetAlpha8 ([out, retval] RtBYTE *pVal) |
| HRESULT | SetAlpha8 ([in] RtBYTE newVal) |
| HRESULT | SetColor ([in] float fRed,[in] float fGreen,[in] float fBlue,[in] float fAlpha) |
| HRESULT | GetColor ([out] float *fRed,[out] float *fGreen,[out] float *fBlue,[out] float *fAlpha) |
| HRESULT | SetColor32 ([in] ULONG dwColor) |
| HRESULT | GetColor32 ([out, retval] ULONG *pdwColor) |
| HRESULT | SetColorRGBA8 ([in] RtBYTE nRed,[in] RtBYTE nGreen,[in] RtBYTE nBlue,[in] RtBYTE nAlpha) |
| HRESULT | SetColorARGB8 ([in] RtBYTE nAlpha,[in] RtBYTE nRed,[in] RtBYTE nGreen,[in] RtBYTE nBlue) |
| HRESULT | GetColorRGBA8 ([out] RtBYTE *nRed,[out] RtBYTE *nGreen,[out] RtBYTE *nBlue,[out] RtBYTE *nAlpha) |
| HRESULT | SetColorRGB8 ([in] RtBYTE nRed,[in] RtBYTE nGreen,[in] RtBYTE nBlue) |
| HRESULT | SetColorArray ([in] FLOAT *pfColors) |
| HRESULT | GetColorArray ([out, retval] FLOAT *pfColors) |
| HRESULT | SetCOLORREF ([in] COLORREF dwNewValue) |
| HRESULT | GetCOLORREF ([out] COLORREF *dwValue) |
| HRESULT | SetColorHSL ([in] float fHue,[in] float fSat,[in] float fLum) |
| HRESULT | GetColorHSL ([out] float *fHue,[out] float *fSat,[out] float *fLum) |
| HRESULT | GetHue ([out, retval] float *pVal) |
| HRESULT | GetSat ([out, retval] float *pVal) |
| HRESULT | GetLum ([out, retval] float *pVal) |
Floating point color rule is that value 1.0 means full color (just as 255 was for 8bit range) Values greater than 1.0 are allowed to support HDR. Values smaller than 0.0 are allowed too.
Conversion to packed 32bit DWORD clamps all values greater than 1.0 to 255. The storage has format BGRA (8bits per channel, B is in first 8 least significant bits, A is in 8 most significant bits).
|
|
Clear the contents of the color data (set all to zero)
|
|
|
Get Red portion of the color
|
|
|
Set Red portion of the color
|
|
|
Get Green portion of the color
|
|
|
Set Green portion of the color
|
|
|
Get Blue portion of the color
|
|
|
Set Blue portion of the color
|
|
|
Get Alpha portion of the color
|
|
|
Set Alpha portion of the color
|
|
|
Get Red portion of the color in 8bit unsigned format. Values in range 0.0 to 1.0 are mapped to range 0 to 255.
|
|
|
Set Red portion of the color in 8bit unsigned format. Values are mapped to range 0.0 to 1.0
|
|
|
Get Green portion of the color in 8bit unsigned format. Values in range 0.0 to 1.0 are mapped to range 0 to 255.
|
|
|
Set Green portion of the color in 8bit unsigned format. Values are mapped to range 0.0 to 1.0
|
|
|
Get Blue portion of the color in 8bit unsigned format. Values in range 0.0 to 1.0 are mapped to range 0 to 255.
|
|
|
Set Blue portion of the color in 8bit unsigned format. Values are mapped to range 0.0 to 1.0
|
|
|
Get Alpha portion of the color in 8bit unsigned format. Values in range 0.0 to 1.0 are mapped to range 0 to 255.
|
|
|
Set Alpha portion of the color in 8bit unsigned format. Values are mapped to range 0.0 to 1.0
|
|
||||||||||||||||||||
|
Set color from four values.
|
|
||||||||||||||||||||
|
Get the color of all four channels.
|
|
|
Set color from single DWORD value. The storage format is ARGB (8bits per channel, B is in first 8 least significant bits, A is in 8 most significant bits) i.e. D3DCOLOR type.
|
|
|
Get the color in single DWORD value. Conversion to packed 32bit DWORD clamps all values greater than 1.0 to 255. The storage format is ARGB (8bits per channel, B is in first 8 least significant bits, A is in 8 most significant bits).
|
|
||||||||||||||||||||
|
Set color from four 8bit unsigned values.
|
|
||||||||||||||||||||
|
Set color from four 8bit unsigned values.
|
|
||||||||||||||||||||
|
Return color in four 8bit unsigned values.
|
|
||||||||||||||||
|
Set color from three 8bit unsigned values. Alpha is set to 1.0
|
|
|
Set color from the array of four consecutive floats.
|
|
|
Return color in from the array of four consecutive floats.
|
|
|
Set color from an COLORREF value.
|
|
|
Return color values in an COLORREF value..
|
|
||||||||||||||||
|
Set color values in an HSL format.
|
|
||||||||||||||||
|
Get color values in an HSL format.
|
|
|
Get Hue part from HSL format.
|
|
|
Get Sat part from HSL format.
|
|
|
Get Lum part from HSL format.
|
1.3.2