Using Device Dependant Bitmaps (DDBs) in Visual Basic

Written by Mike D Sutton
EDais@mvps.org

Http://www.mvps.org/EDais/

- 21.09.2003 -

Introduction:

A Device Dependant Bitmap (DDB) is a GDI object managed by the system, which is used to interface with image data. DDBs are used throughout the system for drawing image data to the screen since they can be processed and managed more efficiently than their cousin, the DIBSection. The reason for this is that their image data is allocated and managed by the GDI and device drivers, which gives them faster access for drawing to or from the object.

Rather than getting too caught up in the mechanics of how these objects work, lets jump straight into coding with them and see how they can be used in our own applications.

Chapter index:

You can download this tutorial to disk for easier viewing offline as an Adobe Acrobat PDF:

Adobe Acrobat PDF doccument (127kb)

And the code for all the chapters:

Code (3.67kb)

Move on to chapter 1
Back to tutorials