18All about graphics
Color Palettes, TrueColor and Gray Scales
Common graphics modes are listed in the following table. Not all graphics modes are available on the ELSA ERAZOR II and ELSA VICTORY Erazor LT boards.
|
|
| Colors |
|
Graphics mode | bpp | bpg | (from palette) | Max. gray levels |
VGA 0x12 | 4 | 6+6+6 | 16 of 262,144 | 16 |
VGA 0x13 | 8 | 6+6+6 | 256 of 262,144 | 64 |
Standard | 8 | 6+6+6 | 256 of 262,144 | 64 |
| 8 | 6+6+6 | 256 of 16.7 million | 256 |
HighColor | 15 | 5+5+5 | 32,768 | 32 |
| 16 | 6+6+4 | 65,536 | 16 |
| 16 | 5+6+5 | 65,536 | 32 |
TrueColor | 24 | 8+8+8 | 16.7 million | 256 |
|
|
|
|
|
(bpp = bits per pixel; bpg = bits per gun)
VGA
In VGA graphics adapters, the digital color information stored in the video memory (4 bits for 16 colors or 8 bits for 256 colors) is converted into a digital
DirectColor
The situation is different in the case of DirectColor (TrueColor, RealColor and HighColor). In this case, the value stored in the video memory is not translated but is passed directly to the D/A converter. This means that the full color information must be saved for each pixel. The meanings of the terms RealColor, TrueColor, and HighColor can be confused, as they are not always used unambiguously.
HighColor and RealColor
HighColor and RealColor usually describe a 15 or
15 bits provide 5 bits each for the red, green and blue values, resulting in 32 levels per RGB component and thus 32,768 (= 32 x 32 x 32) different color hues.