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!

color to grayscale

Status
Not open for further replies.

suvigy

Programmer
Nov 7, 2003
5
HU
Hi all!

We are developing a pcl application that uses colors for text, and for filling rectangle. But for a new demand we have to rewrite the whole program so that it should use grayscaling. What's the simpliest way to do this? Printer prints the colors as black. And we tried the ESC & b 1 M command. But no effect.
is there any command that switches between color and grayscale modes and works? I hope, we dont need to write own palette.
Thnx for the answers in advanve
George
 
You should be able to specify a shading level...

<esc>*c15G which is a 15% shade

For a rectangle

<esc>*c500a500b2P

The 2P specifies a shaded fill.

For text <esc>*v2T MY SHADED TEXT <esc>*v0T

The 2T specifies shaded text and the 0T black text.

Both use the % parameter at the top.

See the PCL5 technical reference... Print Model


Jim Asman
jlasman@telus.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top