Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Physical Colors
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
A display driver is responsible for translating logical colors (RGB values)
into physical colors that are appropriate to the display hardware.
Similarly, it must translate physical colors to logical colors. GDI calls
the ColorInfo function whenever it needs a translated color.
 
If the display device provides a color palette, the driver converts colors
to palette indexes. To indicate a palette index, the driver always sets the
high byte of the index to 0xFF.
 
To indicate an RGB color value, the display driver sets the high byte to
zero.
 
 
                                      ♦