![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
A colour defined as Red, Green, Blue and Alpha
This struct may be converted to and from an int for use with drawing surface or data layer setFeatureRendering functions
Public Member Functions | |
TSLRGBA () | |
TSLRGBA (const TSLRGBA &other) | |
Copy Constructor. | |
TSLRGBA & | operator= (const TSLRGBA &other) |
Assignment Operator. | |
bool | operator== (const TSLRGBA &rhs) const |
Equality Operator. | |
bool | operator!= (const TSLRGBA &rhs) const |
Inequality Operator. | |
TSLRGBA (unsigned char r, unsigned char g, unsigned char b, unsigned char a=0x00) | |
int | composeRGB () |
bool | decomposeRGB (int colour) |
Public Attributes | |
unsigned char | m_b |
Blue. | |
unsigned char | m_g |
Green. | |
unsigned char | m_r |
Red. | |
unsigned char | m_a |
Alpha. | |
|
inline |
Constructor All colour components will be initialised to 0x00
|
inline |
Copy Constructor.
|
inline |
Constructor
r | Red |
g | Green |
b | Blue |
a | Alpha |
|
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.
Alpha (m_a) will be set to 0xff
colour | An RGB value as created by composeRGB |
|
inline |
Inequality Operator.
|
inline |
Equality Operator.
unsigned char TSLRGBA::m_a |
Alpha.
unsigned char TSLRGBA::m_b |
Blue.
unsigned char TSLRGBA::m_g |
Green.
unsigned char TSLRGBA::m_r |
Red.