class HT_RGB32
This class specifies a 4-byte RGB color value. Byte order is dependent on the platform and, in particular, on the "endian-ness" of the platform.
The order specified here is the case for Microsoft Windows platforms.
See Also
Operators
operator = Assignment operator.
operator == Equality operator.
operator != Inequality operator.
Constructor
HT_RGB32 Create and initialize a HT_RGB32 object.
Purpose
Initializes a new HT_RGB32 object.
Synopsis
HT_RGB32()
HT_RGB32 (
int r_in,
int g_in,
int b_in,
int a_in = 0xFF
)
HT_RGB32 (HT_RGB32 const & in)
HT_RGB32 (HT_RGBA const & rgba)
Details
The first form initializes the HT_RGB32 object to an indeterminate value.
The second initializes it to (r_in, g_in, b_in, a_in), which should be between 0 and 255. If not supplied as argument, a_in takes the default value 255.
The third and fourth forms copy an existing HT_RGB32 or HT_RGBA to make a new HT_RGB32.
Purpose
Assignment operator.
Synopsis
HT_RGB32 const & operator= (HT_RGB32 const & in)
Details
Assigns the value of in to this object.
Purpose
Equality operator.
Synopsis
HT_Boolean operator== (HT_RGB32 const & test) const
HT_Boolean operator!= (HT_RGB32 const & test) const
Details
The first operator returns true if test is equal to this object, false otherwise. The second operator reverses the truth values from the first form, but is otherwise the same.