![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
A colour defined as Red, Green, and Blue
This struct may be converted to and from an int for use with drawing surface or data layer setFeatureRendering functions
Public Member Functions | |
TSLRGB () | |
TSLRGB (const TSLRGB &other) | |
Copy Constructor. | |
TSLRGB & | operator= (const TSLRGB &other) |
Assignment Operator. | |
bool | operator== (const TSLRGB &rhs) const |
Equality Operator. | |
bool | operator!= (const TSLRGB &rhs) const |
Inequality Operator. | |
TSLRGB (unsigned char r, unsigned char g, unsigned char b) | |
int | composeRGB () |
bool | decomposeRGB (int colour) |
Public Attributes | |
unsigned char | m_b |
Blue. | |
unsigned char | m_g |
Green. | |
unsigned char | m_r |
Red. | |
|
inline |
Constructor All colour components will be initialised to 0x00
|
inline |
Copy Constructor.
|
inline |
Constructor
r | Red |
g | Green |
b | Blue |
|
inline |
The equivalent of TSLComposeRGB
Composes the RGB values and returns them as an integer which can be passed to the setFeatureRendering methods on the drawing surface or data layers in place of a colour index.
Any alpha value will be ignored
|
inline |
The equivalent of TSLDecomposeRGB
Given an RGB value as created by TSLComposeRGB or TSLRGBA::composeRGB, this method will set this object's RGB values.
colour | An RGB value as created by composeRGB |
|
inline |
Inequality Operator.
|
inline |
Equality Operator.
unsigned char TSLRGB::m_b |
Blue.
unsigned char TSLRGB::m_g |
Green.
unsigned char TSLRGB::m_r |
Red.