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

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


Syntax

HPPJXSCR [<switches>] <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

<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

Prints a screen image on a HP PaintJet XL300 in graphic mode from 75 DPI to 
300 DPI. Optional disabling of formfeed, changing brightness, port, or file. 
Supports multiple images, US standard paper sizes.

The program should be run when the image is displayed. The program should be 
run when the image is displayed on your monitor. It expects that the video 
card is currently in a graphic mode and an image is being displayed before 
the call is made. All coordinates must be passed. You must use TextMode 
(part of Sunshow, standard edition) to reset video card back to text mode.

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

The following example will print a 4.0" x 3.2" image at 300 DPI at the 
upper left corner of the page:

CALL SHOWGIF WITH 'IMAGE.GIF'
RUN HPPJXSCR 300 0 0 4 3.2
CALL TEXTMODE



See Also: HPPJXGIF HPPJXPCX HPPJXTGA

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