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

Print a Targa image file on a Postscript black and white or color printer


Syntax

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


Switch

/f
Do not send a form feed after print.

/c
Print in color. Default is monochrome.

/l
Print in landscape mode.

/b<n>
Set brightness change to <n>. Range is -255 (dark) to 255 (light). 
Default is 10.

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

/legal
Set page size to 8.5" x 14".

/ledger
Set page size to 11" x 17".

/postcard
Set page size to 100mm x 148mm.

/jisA4
Set page size to 210mm x 297mm.

/jisA4long
Set page size to 210mm x 347mm.

/jisB4
Set page size to 257mm x 364mm.

/jisA3
Set page size to 297mm x 420mm.

/fast
Set fast data transfer mode (LPT ports only).

/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 file to print.

<nLeft>
The optional left offset into page in inches (or millimeters).

<nTop>
The optional top offset into page in inches (or millimeters).

<nNewWidth>
The optional new width in inches (or millimeters).

<nNewHeight>
The optional new height in inches (or millimeters).


DOS Error Messages

<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 <cFILENAME.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

PostTGA prints a Targa image file on a Postscript black and white or color 
printer. The bit-mapped image will be quantized on your computer in about 
3 - 5 minutes, with a total print time dependent upon your printer.

Has the capability of printing images larger than screen sizes to 
32,767 x 32,767 pixels (with sufficient hard disk storage space and printer 
memory). These values far exceed current mechanical capabilities.

Supports multiple images, US/European 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 
PostTGA requires use of network print services.

Alternative, non-networked method: Print to disk file with /file: switch, 
then use SendBIN for fastest print speed.

For tips about Postscript printers the the section "Postscript 
Printer Tips" under PostGIF.


Example

To print WATCHES.TGA (an image that has been rotated 90 degrees) in 
landscape mode, at the upper, left corner of the page 7.8" wide and 10" high,
as a Postscript file, in color, to LPT1, with a brightness change to 30

POSTTGA /C /B30 /L WATCHES.TGA 0 0 7.8 10



See Also: PostGIF PostSCR PostPCX PostTIF

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