![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cColorRef.h>
Public Member Functions | |
cColorRef (COLORREF color=0) noexcept | |
cColorRef (COLOR_ELEM_t r, COLOR_ELEM_t g, COLOR_ELEM_t b) noexcept | |
bool | isValidColor () const noexcept |
COLOR_ELEM_t | GetElem (ITERATE_t i) const noexcept |
operator COLORREF () const noexcept | |
COLOR_ELEM_t | get_R () const noexcept |
COLOR_ELEM_t | get_G () const noexcept |
COLOR_ELEM_t | get_B () const noexcept |
COLOR16_t | get_Grey16 () const noexcept |
COLORREF | get_ColorRef () const noexcept |
D3DCOLOR | get_ColorDX () const noexcept |
Static Public Member Functions | |
static COLORREF | GetRGB (COLOR_ELEM_t r, COLOR_ELEM_t g, COLOR_ELEM_t b) noexcept |
static COLOR_ELEM_t | GetR (COLORREF color) noexcept |
static COLOR_ELEM_t | GetG (COLORREF color) noexcept |
static COLOR_ELEM_t | GetB (COLORREF color) noexcept |
static D3DCOLOR | ToD3D (COLORREF color) noexcept |
static COLORREF | FromD3D (D3DCOLOR color) noexcept |
Public Attributes | |
COLORREF | m_color |
32 bit color. GDI format. [0]=red,[1]=green,[2]=blue,[3] = maybe alpha or ignored. More... | |
_WIN32 GDI 32 bit COLORREF format. GDI RGBA (high to low [0] to [3] ) or ABGR (high to low value bytes) SURF_FORM_ABGR8888 Can use RGB() macro on these as well. GetGValue(), GetRValue() = UINT32 BGR (high to low bytes)
|
inlinenoexcept |
|
inlinenoexcept |
< just reverse B&R
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinestaticnoexcept |
get the blue component. replace _WIN32 GetBValue()
|
inlinenoexcept |
i= 0=red,1=g,2=b,3=a low to high bytes on little endian value.
|
inlinestaticnoexcept |
get the green component. replace _WIN32 GetGValue()
|
inlinestaticnoexcept |
get the red component. replace _WIN32 GetRValue()
|
inlinestaticnoexcept |
replace _WIN32 RGB() macro. GDI ABGR (hi to lo bytes)
|
inlinenoexcept |
|
inlinenoexcept |
COLORREF GrayLib::cColorRef::m_color |
32 bit color. GDI format. [0]=red,[1]=green,[2]=blue,[3] = maybe alpha or ignored.