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

Print a ZSoft PCX image on a HP PaintJet XL300 or compatible printer


Syntax

HPPJXPCX [<switches>] <cFILENAME.PCX> <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.PCX>
The PCX 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.


Remarks

This prints a PCX image file on a HP PaintJet XL300 in graphic mode from 
75 DPI to 300 DPI. Optional disabling of formfeed, changing brightness, 
port, or file. Has the capability of printing enormous images larger than 
screen sizes to 32,767 x 32,767 pixels (with sufficient printer memory). 
Supports multiple images, US standard paper sizes.

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

To print a 8"x10" PCX image ASMUSSEN.PCX at 300 DPI, lightened (increased 
brightness), in fast mode:

HPPJXPCX /FAST /B80 ASMUSSEN.PCX 300 0 0 8 10



See Also: HPPJXGIF HPPJXSCR HPPJXTGA

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