Skip to Main Content
Windows Graphics Programming Win32 GDI and DirectDraw®
book

Windows Graphics Programming Win32 GDI and DirectDraw®

by Feng Yuan
December 2000
Intermediate to advanced content levelIntermediate to advanced
1280 pages
28h 56m
English
Pearson
Content preview from Windows Graphics Programming Win32 GDI and DirectDraw®

Chapter 12. Image Processing Using Windows Bitmaps

The benefit of device-independent bitmaps and DIB sections is that applications can directly access their pixel arrays and color tables. Often this direct access is a critical technique to implement features not provided by GDI, or to achieve improved performance not feasible using GDI calls.

So far, we have seen both cases. When we talked about simulating PlgBlt, we used GDI's pixel access API GetPixel and SetPixel. We found out that it's much slower than GDI's Windows 2000 implementation. Each individual GetPixel and SetPixel call has the overhead of parameter validation, user-mode to kernel-mode switching, color translation, etc. GetPixel even creates a temporary bitmap to call the internal ...

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

C++ Windows Programming

C++ Windows Programming

Stefan Bjornander

Publisher Resources

ISBN: 0130869856Purchase book