Bitmap Data and TWAIN

Top  Previous  Next

Unless you're calling DTWAIN functions that automatically create image files from scanned images (for example, DTWAIN_AcquireFile), by default TWAIN returns Device Independent Bitmaps (DIBs) to your application, therefore you should be familiar with how to handle this image type within your language and application.   An example of DTWAIN functions that return DIBS are DTWAIN_AcquireNative and DTWAIN_AcquireBuffered (when acquiring uncompressed image data)

 

Since DIB's are one of the most common formats in the Windows environment, you should be able to consult documentation on how to handle this format.  If you have libraries that handle Windows BMP files, the same library or code can be used to handle a DIB.  The example programs found in the /EXAMPLES/C and /EXAMPLES/C++ directory include portions of the DIBVIEW program that demonstrates handling of Device Independent Bitmaps.

 

If you are not familiar with handling DIB's, we suggest that you get one of the many ActiveX or third party libraries that can display or manipulate Device Independent Bitmaps.