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

Palettes and Real-World Images

Of course, despite the fun we’ve been having displaying continuous shades of color and doing palette animation, the real purpose of the Palette Manager is to allow the display of real-world images under 8-bit video modes. For the remainder of the chapter, we’ll be exploring precisely that. As you might have already anticipated, you must use palettes differently when using packed DIBs, GDI bitmap objects, and DIB sections. The next six programs illustrate various techniques for using palettes with bitmaps.

Palettes and Packed DIBs

Assisting us in the next three programs will be a set of functions that work with packed-DIB memory blocks. These functions are in the PACKEDIB files shown in Example 16-12.

Example 16-12. PACKEDIB.H ...

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