Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HPixelRGB Class Reference

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

#include <HGlobals.h>

Inheritance diagram for HPixelRGB:

HPixelRGBA

List of all members.

Public Member Functions

void b (unsigned char const B)
unsigned char b () const
void g (unsigned char const G)
unsigned char g () const
 HPixelRGB (HPixelRGB const &p)
 HPixelRGB (unsigned char R=0, unsigned char G=0, unsigned char B=0)
void r (unsigned char const R)
unsigned char r () const
void Set (unsigned char R, unsigned char G, unsigned char B)
void Setf (float R, float G, float B)


Detailed Description

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

Member Function Documentation

void HPixelRGB::Set ( unsigned char  R,
unsigned char  G,
unsigned char  B 
) [inline]

Sets the red, green and blue values.

Referenced by HPixelRGBA::Set().

void HPixelRGB::Setf ( float  R,
float  G,
float  B 
) [inline]

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

Referenced by HPixelRGBA::Setf().


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