Skip to Content
Programming Windows®, Fifth Edition
book

Programming Windows®, Fifth Edition

by Charles Petzold
November 1998
Intermediate to advanced
1520 pages
37h 53m
English
Microsoft Press
Content preview from Programming Windows®, Fifth Edition

Chapter 16. The Palette Manager

This chapter would not exist were it not for a hardware deficiency. Although many modern video adapter boards offer 24-bit color (also known as “true color” or “millions of colors”) or 16-bit color (“high color” or “thousands of colors”), some video adapters—particularly on laptops or in high-resolution video modes—allow only 8 bits per pixel. The use of 8 bits per pixel implies only 256 simultaneous colors.

What can we do with 256 colors? While a mere 16 colors are clearly inadequate for displaying real-world images and the use of thousands or millions of colors is quite sufficient for that task, 256 colors falls somewhere in the middle. Yes, 256 colors are adequate for displaying a real-world image, but only if ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming Windows®, Six Edition

Programming Windows®, Six Edition

Charles Petzold
Windows® via C/C++, 5th Edition

Windows® via C/C++, 5th Edition

Jeffrey Richter, Christophe Nasarre

Publisher Resources

ISBN: 9780735642225Purchase book