Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reverse Video (for lack of better explanation)

Status
Not open for further replies.

Buff1

Programmer
Feb 7, 2003
295
US
Does anyone have code for printing white text with a black
background in PCL. I can do it with raster graphics but
not only is it time consuming but I hate using raster
graphics with ink jets (though i mostly use this for
hp compatible laser printers).

Thanks in advance. (PCL5 or below please)
 
A raster image notwithstanding, you can't do reverse text as such with a PCL3 printer!

In PCL5, the you first lay down an appropriate sized black rectangle, and then position the cursor and print white text.
Code:
<esc>*p500x500Y          initial cursor position   
<esc>*c400a150bP         print blackbox 400 x 150 dots
<esc>*v1o1T              set to print white(erase black)
<esc>(s1p18v0s0b16602    18pt arial bold
<esc>*p+50x+100Y         Position cursor for Text
HELLO                    Text
<esc>*v0o0T              Back to black text

The code is shown on separate lines here for clarity, and the above would all be on the same line in the PCL job.

Jim Asman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top