Chapter Contents

Previous

Next
SAS Component Language: Reference

Attributes for Reading Images from HP ScanJet and TWAIN Scanners

Device Attributes for HP ScanJet and TWAIN Scanners describes the attributes that are supported the under Windows 95, Windows 98, and Windows NT operating systems for the HP ScanJet scanners and TWAIN scanners. They are supported under HP/UX operating systems for HP ScanJet scanners only. You must specify DEVICE=SCANNER. For example:

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

Device Attributes for HP ScanJet and 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 scan from the bed.
TYPE=type Sets the type of image to generate. You can specify BITONAL, RGB, or GRAY. For HP/UX scanners, you can also specify CMAP. For HP/UX scanners, BITONAL; 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 DPI for 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


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.