Image Rendering

After you create a DrawDib DC, you can draw a DIB to the screen by using the DrawDibDraw function. DrawDibDraw dithers true-color bitmaps when displaying them with 8-bit display adapters.

DrawDibDraw also supports video compressors transparently when displaying compressed bitmaps. You can access the buffer that contains the decompressed image by using the DrawDibGetBuffer function. DrawDibGetBuffer returns NULL when drawing an uncompressed bitmap. You should prepare your application to handle compressed and uncompressed bitmaps.

You can refresh an image or a portion of an image displayed by your application by using the DrawDibUpdate macro.