Takes a bitmap handle passed to your subroutine by TwainGetImage, and returns a Device Independent Bitmap (DIB) suitable for displaying in a GUI window via TwainDrawDIB or TwainDrawStretchDIB, or saving to disk via TwainSaveDIB.
Synopsis
Dib = TwainCreateDIB(Bitmap)
Args
Bitmap is the arg passed to your subroutine by TwainGetImage.
Returns
A device independent bitmap if success, or an empty string if the original bitmap is compressed. (RxTwain does not handle compressed bitmaps).
Notes
A "Resources exhausted" SYNTAX condition may be raised if there is not enough memory to create the DIB.
When you're done with the DIB, you should free it by passing it to TwainFreeDIB.