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 - <b>hppjxtga</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
HPPJXTGA

Print a Targa image on a HP PaintJet XL300 or compatible printer


Syntax

HPPJXTGA [<switches>] <cFILENAME.TGA> <nDPI> <nLeft> <nTop> 
   <nNewWidth> <nNewHeight>


Switch

/f
Do not send a form feed after print.

/b<n>
Change brightness by <n> (-255 dark to 255 light). Default is 60.

/letter
Set page size to 8.5 x 11 inches (default).

/legal
Set page size to 8.5 x 14 inches.

/ledger
Set page size to 11 x 17 inches.

/fast
Set fast data transfer mode (LPT ports only). 
Not redirectable with network print servers.

/com<n>
Send output to com <n>.

/lpt<n>
Send output to lpt <n> (default is lpt1).

/prn
Send output to standard print.

/file:<FILE>
Send output to <FILE>.


Arguments

<cFILENAME.TGA>
The Targa image to print.

<nDPI>
The dots per inch (75, 100, 150, or 300).

<nLeft>
Left offset into page in inches.

<nTop>
Top offset into page in inches.

<nNewWidth>
New width in inches.

<nNewHeight>
New height in inches.


DOS Error Messages

<nDPI> should be one of 75, 100, 150, or 300
<nLeft> + <nNewWidth> should be less than 11.0"
<nTop> + <nNewHeight> should be less than 17.0"
unknown switch: /<switch>


DOS Error Levels

0
Success.

1
Can not open <cFILE.TGA>.

2
Can not allocate enough memory for line buffers.

3
<cFILENAME.TGA> is not a valid Targa file.

4
Print terminated by user.

5
Printer does not acknowledge.

6
Printer is out of paper.

7
Printer time out error.


Remarks

HPPJXTGA prints a Targa image file on a HP PaintJet XL300 in graphic mode 
from 75 DPI to 300 DPI. It features optional disabling of formfeed, 
changing brightness, port, or file. HPPJXTGA has the capability of printing 
enormous images larger than screen sizes to 32,767 x 32,767 pixels (with 
sufficient printer memory). These values far exceed current mechanical 
capabilities. HPPJXTGA supports multiple images, US standard paper sizes. 
Includes special /FAST method providing similar speed as SendBIN (part of 
Sunshow, standard edition). /FAST parameter writes directly to printer 
ports, supports LPT ports ONLY; does not support COM ports, PRN, FILE, and 
is not network redirectable, therefore cannot be used with network. Network 
use of HPPJXTGA requires, use of network print services.

An alternative, non-network print method is to print to a file with /file: 
switch, then use SendBIN for fastest print speed.

To calculate the memory requirements for printing an image in color:

1.  Multiply image width in inches by DPI for width in pixels.

2.  Multiply image height in inches by DPI for height in pixels.

3.  Multiply image width in pixels by height in pixels for overall 
    image size in pixels.

4.  Devide overall image size in pixels by 8 to get the number of 
    bytes per plane.

5.  Multiply the number of bytes per plane by the number of 
    planes (3 for color, 1 for monochrome) to get the bytes of 
    printer memory required.

A formula for the above steps of calculation is:

(((<width>*<DPI>)*(<height>*<DPI>))/8)*<Numplanes> =
<bytes of printer memory required>

So for an 8" x 10" image at 300 DPI in color:

1.  8" * 300 DPI = 2400 pixels.

2.  10" * 300 dpi = 3000 pixels.

3.  2400 * 3000 = 7,200,000 bytes.

4.  7,200,000 / 8 = 900,000 bytes per plane.

5.  900,000 x 3 planes for a color image = 2,700,000 bytes of 
    required printer memory, packed pixel format (three planes of 
    1-bit per pixel data).


Example

Print ASMUSSEN.TGA in /fast mode, brightness of 80, 300 DPI, no offset, 
8 x 10 inches:

HPPJXTGA /FAST /B80 ASMUSSEN.TGA 300 0 0 8 10



See Also: HPPJXGIF HPPJXPCX HPPJXSCR

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