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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing RGB colors in PCL

Status
Not open for further replies.

Buff1

Programmer
Feb 7, 2003
295
US
What commands do I use for to set an RGB color on a deskjet ?

I want to set it to a very light gray for shading but
other colors will be useful in the future.

I can do the basic colors
Ec*r-4U Ec*v10S
for example to print in a green


 
Well, assuming you want full color, you have to create a three plane image. It's usually easier to work with CMY when dealing with inks. It would go like...

<esc>*b###V.........................Cyan data
<esc>*b###V.........................Magenta data
<esc>*b###W.........................Yellow data

Note the W in the third row. The V command does not advance the cursor to a new row. The W command does, so it only appears on the last row, thus overlay the color components on top of each other and then advance the row after all three components have been printed.

In BW we advance the row every time with the W command as you would expect.

I would have a look on HP's website for info.

You are responsible for dithering the image. Now if you get a PCL5 color printer, the printer can do the dithering for you.

Jim Asman
 
Thanks Jim. Well it's a deskjet so it uses PCL 3 enhanced
I think rather than PCL 4 or 5. I've tried to use
Ec*c##h##v20g2P
to shade and it ignores it. I can use chr$(176) or 177 or
178 but can't really get it light enough for what I want.

Is the 'DATA' what you are printing ? like text/chr$()/etc ?
If so, I would assume it's repeated each time.

What's the limit of numbers for the CMY palette
(i.e. for C, M, and Y individually)

Thanks for your fase response.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top