DTWAIN_TwainSave overview

Top  Previous  Next

TwainSave is a command-line scanning technology that allows you to easily acquire images from any TWAIN compatible device such as scanners, digital cameras, etc., and save the images to a variety of image formats.  Starting with version 3.0 of the DynaRithmic TWAIN Library,the TwainSave technology is now built into DTWAIN.

 

When acquiring files, the supported formats for DTWAIN_TwainSave are as follows:

 

Windows Bitmap (BMP)
JPEG
JPEG-2000
TIFF (Compression supported are No compression, Packbits, Flate, LZW, Group 3 FAX, Group 4 FAX, and JPEG)
GIF
PCX
PNG
Targa
Windows meta file (WMF)
Enhanced Windows meta file (EMF),
Adobe Photoshop (PSD)
Adobe Acrobat (PDF)
Postscript Level 1 and Level 2
Windows ICON files (non-Vista and Vista style Icons)
Wireless Bitmap Format (WBMP)

 

Also available are multipage TIFF, PCX, PDF, and PostScript files.

 

When producing Acrobat PDF files, DTWAIN_TwainSave has various options including setting the producer, keywords, encryption, and other useful PDF options.

 

Since DTWAIN_TwainSave uses a command-line interface, programmers can easily utilize DTWAIN_TwainSave in their programs to initiate TWAIN image retrieval.  Resolution, image-bit depth, acquisition area, duplex scanning, multi-page scanning, job/batch control, imprinter usage, blank page removal, and many other options are available in an easy-to-use command line utility.

 

Also available are special diagnostic mode, just in case a TWAIN driver doesn't behave as expected.  Log files are generated that capture all the events occuring between DTWAIN_TwainSave and your TWAIN device.

 

If a programmer desires more control of TWAIN image retrieval, it is highly recommended that the numerous DTWAIN functions be used for more programmatic control of the TWAIN devices instead of DTWAIN_TwainSave.

 

DTWAIN_TwainSave currently supports Black and White, grayscale, and color (RGB) image file creation.

 

Example of DTWAIN_TwainSave usage

DTWAIN_TwainSave return codes

DTWAIN_TwainSave command-line options