The DIB driver is a separate driver and is not associated with the display driver. Because of this, an application cannot use the BitBlt function to move bitmaps between a DIB-driver device context and a screen device context. An application can use the GetDIBits function to copy from the screen device context to a DIB device context. To copy a DIB device context to the screen device context, an application can use the StretchDIBits function.
An application can maximize the speed of StretchDIBits by using one of the following methods:
One-to-one mapping for the palette
DIB_PAL_COLORS, an option that prevents color matching by the graphics device interface (GDI)