2.2.2.2.1.1.1.8 Generic Color (TS_COLOR)

The TS_COLOR structure holds a 3-byte RGB color triplet (the red, green, and blue components necessary to reproduce a color in the additive RGB space) or a 1-byte palette index.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

RedOrPaletteIndex

Green

Blue

RedOrPaletteIndex (1 byte): An 8-bit, unsigned integer. RedOrPaletteIndex is used as a palette index for 16-color and 256-color palettized color schemes. If the RGB color scheme is in effect, this field contains the red RGB component. To determine whether a palettized or RGB color scheme is in effect, the client MUST examine the preferredBitsPerPixel field of the Bitmap Capability Set ([MS-RDPBCGR] section 2.2.7.1.2). If preferredBitsPerPixel is less than or equal to 8, then a palettized color scheme is in effect; otherwise, an RGB color scheme is in effect.

Green (1 byte): An 8-bit, unsigned integer. Green contains the green RGB color component.

Blue (1 byte): An 8-bit, unsigned integer. Blue contains the blue RGB color component.