Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Sunshow Pro V3.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

ScanJet

Scan a Targa image from a HP ScanJet flatbed scanner


Syntax

SCANJET [<switches>] <cFILENAME.TGA>


Switch

/+
Set bounds for ScanJet Plus.

/iic
Set bounds for ScanJet IIc.

/aspect
Preserve aspect ratio.

/k<n>
Set contrast to <n> (-127(dark) to 127 (light)). ScanJet Plus only.

/i<n>
Set intensity level to <n> (-1 (dark) to 1 (light)). ScanJet Plus' range 
(-127 (dark) to 127 (light)).

/s<n>
Set number of grey shades to <n> (2, or 16). ScanJet Plus' range  
(2, 16, 64, or 256).

/color16
Scan in 32,768 colors (Targa 16). Requires Scanjet IIc.

/color24
Scan in 16,777,216 colors (Targa 24). Requires Scanjet IIc.

/d<n>
Scan in black and white and dither with pattern <n> (1 to 5):
1 - 8 x 8 coarse fatting
2 - 4 x 4 fine fatting
3 - 4 x 4 bayer
4 - 4 x 4 vertical line
5 - Error diffused dither

/adf
Reports error if Automatic Document Feeder is not ready. If /adf 
parameter is not passed to the scanner, SCANJET operates as if no ADF is 
present.

/w<x>,<y>,<w>,<h>
Set scan window in inches:
<x> is the x origin (x must be greater than or equal to 0)
<y> is the y origin (y must be greater than or equal to 0)
<w> is the width (x + w must be less than 8.5)
<h> is the height (y + h must be less than 14.0)

/o<x>,<y>,<w>,<h>
Set output window in inches:
<x> is the x origin (x must be greater than or equal to 0)
<y> is the y origin (y must be greater than or equal to 0)
<w> is the width (w must be greater than 0)
<h> is the height (h must be greater than 0)

/compress
Compress output file.


Arguments

<cFILENAME.TGA>
The Targa image filename to save the scanned image to.
The bounds parameter default to the original ScanJet. You must pass the 
correct bounds parameter for ScanJet Plus, ScanJet IIc, or ScanJet IIp.


DOS Error Levels

0
No errors.

1
Scan resolution is out of range.

2
Cannot open device name: HPSCAN. Check for correct installation: 
SJDRIVER.SYS or SJII.SYS in CONFIG.SYS).

3
Scanner did not return image width.

4
Scanner did not return image height.

5
Scanner did not return bytes per line.

6
Cannot allocate memory for line buffers.

7
Cannot create output filename.

8
Write error disk full.

9
Scan terminated by user (pressed ESC).

10
Scanner time out error.

11
Scanner ADF not ready (out of paper or jammed).

99
Parameters are invalid or unknown switch.


Remarks

The ScanJet driver for HP ScanJet, ScanJet Plus, ScanJet IIc, supports 
Automatic Document Feeder (ADF), and returns DOS error-level conditions. 
It requires the correct device driver be correctly installed in CONFIG.SYS. 
Color commands must be sent to the correct HP driver. ScanJet saves 
monochrome (bilevel or greyscale, any output less than 8-bits) scans to 
Targa 8-bit file and color output may be saved to Targa 16- or 24-bit file. 
The Targa output may then be processed further by other Sunshow utilities.

ScanJET by default scans an area 8" x 6" at the top of the page, to produces 
a Targa 16 file at 640x480 image width and height. Screen width and screen 
height (found on most 8-bit image file formats) are normally used to set a 
video display adapter to the correct video mode. Image coordinates define 
the size of the image. Image with pixel depth greater than 8-bits often are 
video mode independent and therefore do not contain screen width and height 
in the image header.

ScanJet is able to detect if the ADF is present and ready. Because of only 
limited communication ability with the driver, Sunshow is unable to detect 
the cause of an Automatic Document Feeder NOT READY error. When using the 
/ADF parameter, you should visually verify that the ADF is connected to the 
scanner, the input tray is loaded with paper, the ADF cover is closed, and 
the ADF is not jammed.


ScanJet Device Driver

The required Hewlett Packard device driver must be the correct driver for 
the scanner in use: SJDRIVER.SYS for ScanJet and ScanJet Plus, SJII.SYS for 
the ScanJet IIC:

DEVICE=[<drive>:][<path>] SJDRIVER.SYS

or

DEVICE=[<drive>:][<path>] SJII.SYS

For example (for your CONFIG.SYS):

DEVICE=C:\SUNSHOW\SJDRIVER.SYS


Example

SCANJET /IIC /COLOR16 /W0,0,8,6 /O0,0,640,480 IMAGE.TGA

Pipe (using the ">" greater-than symbol) any error messages conditions to 
a file or to NUL to avoid display of errors on the screen:

SCANJET /IIC /COLOR16 /W0,0,8,6 /O0,0,640,480 IMAGE.TGA > NUL



See Also: CanonScn EpsonScn GPIBScan UmaxScan HowtekSc JX100Scn MicroScn MitsScan TexnaiSc

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson