Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Your information in this site is absolutely WONDERFUL. It is the most useful site on the web to me right now. Thank You Thank You..."

Geography

Where in the world do Tek-Tips members come from?

printing RGB colors in PCL

Buff1 (Programmer)
19 Jan 06 22:04
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


jlasman (TechnicalUser)
19 Jan 06 23:22
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

Buff1 (Programmer)
20 Jan 06 0:41
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.
Buff1 (Programmer)
20 Jan 06 11:01
oops - i meant fast response

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close