Re: RGB Text in PCL5 (91 Views)
Reply
Occasional Visitor
JG655321
Posts: 1
Registered: ‎03-07-2014
Message 1 of 2 (109 Views)
Accepted Solution

RGB Text in PCL5

I'm trying to print arbitrary color text on a PCL5 printer, but am not having much luck.

 

Every example and document only describes how to do "simple color" (*r3U) text; I'd like to be able to do RGB colors.

 

I have managed to use CID (*v#W) *PLUS* the pallet config parameters (*v#a#b#c#I) and it works beautifully... but it seems like I'm missing something easy to not have to define 16M colors at the start of every document...

 

Does the direct-index thing (*v6W[2][3][0][8][8][8]) ONLY work on graphics, leaving us to have to define every text color before using it if it isn't in the simple color list?

 

To be clear, I'm doing (*v#S) to set foreground color, and I do *GET* color, depending on what options I choose for *v#W, but they are FAR from the RGB colors I am expecting them to be (mostly blue, black, red, white for RGB and yellow, cyan, grey, and black for CYMK pallets).

 

TIA!

Please use plain text.
Honored Contributor
Chris H
Posts: 3,925
Registered: ‎06-04-2004
Message 2 of 2 (91 Views)

Re: RGB Text in PCL5

>> ... Does the direct-index thing (*v6W[2][3][0][8][8][8]) ONLY work on graphics ...

>> ... have to define every text color before using it if it isn't in the simple color list?

 

I believe that is the case; for text, you have to select a colour via a palette index, and with palettes with 3 -> 8 bits per index, the default palette has specific colours (Black, Red, Green, Yellow, Blue, Magenta, Cyan, White) defined for indices 0 -> 7, and black for indices > 7.

 

 

 

>> ... I'm doing (*v#S) to set foreground color, and I do *GET* color ...

>> ... but they are FAR from the RGB colors I am expecting

 

The PCL5 Colour Technical Reference manual describes a number of other sequences (Render Algorithm, User Defined Dither Matrix, Gamma Correction, Color Lookup Tables, Viewing Illuminant) which may affect colour rendition.

 

I'm not that familiar with any of these, so can't offer any advice as to how much of an effect they would have on your symptoms.

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation