03-07-2014 08:02 AM
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) 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).
Solved! Go to Solution.
03-08-2014 06:29 AM
>> ... Does the direct-index thing (*v6W) 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.