Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cColor888 Class Reference

#include <cColorRef.h>

Public Member Functions

 cColor888 () noexcept
 
 cColor888 (COLORREF color) noexcept
 
 cColor888 (COLOR_ELEM_t _r, COLOR_ELEM_t _g, COLOR_ELEM_t _b) noexcept
 
bool operator== (const cColor888 &color2) const noexcept
 
bool operator!= (const cColor888 &color2) const noexcept
 
COLOR_ELEM_t GetElem (ITERATE_t i) const noexcept
 
COLOR_ELEM_t get_R () const noexcept
 
COLOR_ELEM_t get_G () const noexcept
 
COLOR_ELEM_t get_B () const noexcept
 
COLORREF get_ColorRef () const noexcept
 
D3DCOLOR get_ColorDX () const noexcept
 

Public Attributes

COLOR_ELEM_t r
 
COLOR_ELEM_t g
 memory is GDI order. [0] = red More...
 
COLOR_ELEM_t b
 

Detailed Description

"true color" 24 bit (3 byte) storage pixel. memory stored as GDI order format. [0] = red SURF_FORM_BGR888

Constructor & Destructor Documentation

◆ cColor888() [1/3]

GrayLib::cColor888::cColor888 ( )
inlinenoexcept

◆ cColor888() [2/3]

GrayLib::cColor888::cColor888 ( COLORREF  color)
inlinenoexcept

◆ cColor888() [3/3]

GrayLib::cColor888::cColor888 ( COLOR_ELEM_t  _r,
COLOR_ELEM_t  _g,
COLOR_ELEM_t  _b 
)
inlinenoexcept

Member Function Documentation

◆ get_B()

COLOR_ELEM_t GrayLib::cColor888::get_B ( ) const
inlinenoexcept

◆ get_ColorDX()

D3DCOLOR GrayLib::cColor888::get_ColorDX ( ) const
inlinenoexcept

get color as DirectX D3DCOLOR = RGB (hi to lo value bits)

◆ get_ColorRef()

COLORREF GrayLib::cColor888::get_ColorRef ( ) const
inlinenoexcept

get color as GDI COLORREF = BGR (hi to lo value bits)

◆ get_G()

COLOR_ELEM_t GrayLib::cColor888::get_G ( ) const
inlinenoexcept

◆ get_R()

COLOR_ELEM_t GrayLib::cColor888::get_R ( ) const
inlinenoexcept

◆ GetElem()

COLOR_ELEM_t GrayLib::cColor888::GetElem ( ITERATE_t  i) const
inlinenoexcept
  • i= 0=red,1=g,2=b. byte array order.

◆ operator!=()

bool GrayLib::cColor888::operator!= ( const cColor888 color2) const
inlinenoexcept

◆ operator==()

bool GrayLib::cColor888::operator== ( const cColor888 color2) const
inlinenoexcept

Member Data Documentation

◆ b

COLOR_ELEM_t GrayLib::cColor888::b

◆ g

COLOR_ELEM_t GrayLib::cColor888::g

memory is GDI order. [0] = red

◆ r

COLOR_ELEM_t GrayLib::cColor888::r

The documentation for this class was generated from the following file: