-F |
Top Previous Next |
-F filetype
The -F parameter determines the image file type that will be saved. If -F is not specified, the file type will be a Windows BMP file. If the -multipage option is used, the file will be a multipaged image file (only TIFF, PCX, PDF, and PostScript formats allow multi-page image files).
The valid values for -F are as follows:
Example: Acquire to a Group 3 TIFF format, the file is called mytif.tif: DTWAIN_TwainSave("-F tif3 -f mytif.tif");
If the device cannot save to the file type specified, this will usually mean one of the following:
The error states that the device is attempting to transfer 8 bit images (usually color or gray scale), but the image format specified (TIFF Group 3) does not support color or gray-scale images.
If the device's user interface is shown, the user may have chosen an incorrect type that matches the format given on the DTWAIN_TwainSave command line. Therefore it is highly recommended that if you plan to use DTWAIN_TwainSave, and the device's user interface will be available to the user, to select a file format that gives you the most supported types of colors. For example BMP supports both monochrome, gray-scale, and color images, as do all forms of TIFF except for Group 3, Group 4 TIFF, and TIFF-JPEG.
Here are the list of file types, and the bits-per-pixel supported for each one:
Below is a table describing the valid bit-depths for each file type:
File Type Bit Depth
1 bit-per-pixel are monochrome (black/white) images. 4 bits-per-pixel are usually gray-scale images. 8 bits-per-pixel are usually gray-scale and 256 color images. 16 and 24 bits-per-pixel are usually color images.
Note: Bit depths higher than 24 should be stored as bmp files.
Default Setting: The image type is bmp (Windows BMP).
|