Saving a DIB into a File

Home » Imaging Toolkit » Saving a DIB into a File
Imaging Toolkit No Comments

Developers can use either the SaveDIBinImageFormat or the SaveDIBInImageFormatExt functions to save a DIB into any supported image format. The key difference between the two functions is that the SaveDIBinImageFormat displays a dialog box prompting the user for input for compression and other items while the SaveDIBInImageFormatExt allows developers to pass all of this information themselves. Alternately, developers can use file format specific functions for saving DIBs into image files. If you do not need the DIB any longer, be sure to free it up using the Microsoft API’s GlobalUnlock or GlobalFree functions.

Regards,
Technical Support Team