HPixelRGB

class HPixelRGB

The HPixelRGB class is the data type of a rgb pixel.

Methods

HPixelRGB::HPixelRGB(unsigned char R = 0, unsigned char G = 0, unsigned char B = 0)
HPixelRGB::HPixelRGB(HPixelRGB const &p)
unsigned char HPixelRGB::r() const

const

unsigned char HPixelRGB::g() const

const

unsigned char HPixelRGB::b() const

const

void HPixelRGB::r(unsigned char const R)
void HPixelRGB::g(unsigned char const G)
void HPixelRGB::b(unsigned char const B)
void HPixelRGB::Set(unsigned char R, unsigned char G, unsigned char B)

Sets the red, green and blue values.

void HPixelRGB::Setf(float R, float G, float B)

Sets a pixel value taking floats (between 0.0 - 1.0) for rgb.

Variables

unsigned char HPixelRGB::m_r

private

unsigned char

The red channel.

unsigned char HPixelRGB::m_g

private

unsigned char

The green channel.

unsigned char HPixelRGB::m_b

private

unsigned char

The blue channel.