TwainSaveDIB

Saves a Device Independent Bitmap (DIB) to a file on some permanent media such as your hard drive.

Synopsis

error = TwainSaveDIB(Dib, Filename)

Args

Dib is the DIB returned by TwainCreateDIB.

Filename is the name of the file where the bitmap will be saved. This may include the full path such as "C:\MyDir\MyFile.bmp". TwainSaveDIB creates a standard Bitmap file readable by most software, and which can be used in REXX GUI controls that support bitmaps.

Returns

An empty string if successfully saved, or an error code.

Notes

After you're saved the DIB, and you will not be displaying it, you should free it by passing it to TwainFreeDIB.