Previous Page | Next Page

Image File Types and Associated Attributes

Attributes for Reading Images from TWAIN Scanners

The table Device Attributes for TWAIN Scanners describes the attributes that are supported under Windows NT, Windows 2000, and Windows XP operating systems for TWAIN scanners. You must specify DEVICE=SCANNER. For example:

rc=imgop(taskid,'READ','twain','device=scanner dpi=100');

Device Attributes for TWAIN Scanners
Attribute Description Default
BRIGHT=n
sets the brightness setting. 0
CONTRAST=n
sets the contrast setting. This option is ignored with bi-tonal images. 0
DPI=n
sets the number of dots per inch. 200
FEEDER | NOFEEDER specifies how the document is scanned. FEEDER assumes that there is a document feeder and produces an error if there is no document feeder. NOFEEDER scans from the bed and ignores the feeder if one is attached. Use the feeder if it is attached; otherwise, use the scan from the bed.
SELSRC displays the TWAIN Select Source window. The default source is highlighted, but you can select a different source. If you do not specify SELSRC, then the application uses the default source.
SETCAP displays the data source's capability window.
SCNAME=product sets the default source. Specify the product name (as displayed in the TWAIN Select Source window) of the scanner. (This product name may not be the same as the name of the scanner.) If product matches more than one scanner's product name, then the first match is selected.

If you do not specify SCNAME, then the source defaults either to the last source used or to the first source in the list (if the application has not been run yet).


TYPE=type sets the type of image to generate. You can specify BITONAL, RGB, or GRAY. For TWAIN scanners, the highest resolution (bits/pixel) that is supported by the device.
UNITS=units sets the size units for the SIZE and START options. You can specify IN, CM, MM, or PIXEL. IN
XDPI=n sets the dots per inch for the width only. 200
XSIZE=d sets the width to scan (decimal value). 8.5 inches
XSTART=d sets the starting point of the scan along the width. 0
YDPI=n
sets the dots per inch for the height only. 200
YSIZE=d sets the height to scan (decimal value). 11 inches
YSTART=d sets the starting point of the scan along the height. 0

Previous Page | Next Page | Top of Page