OT: PCL line background shading
Bill Vermillion
fp at wjv.com
Mon Apr 12 09:42:55 PDT 2004
On Mon, Apr 12, 2004 at 11:50:22AM -0400, Jay R. Ashworth thus spoke:
> On Mon, Apr 12, 2004 at 09:02:31AM -0700, Jim Asman wrote:
> > If you are masochistic and want to lay wad of printcodes on the output format,
> > then the code to draw a gray rectangle @ 10% ...
> > $1b *c2400a50b10g2P
> > You will have to position the gray to it aligns with the text.
> That's at absolute coordinates, then? I was hoping it might
> be possible to save the current cursor position (as Bill's
> code comments seem to suggest he's doing), then draw a wide
> rectangle from there, and restore (maybe with a tiny move in
> front).
> Or is that what you just said?
The code that Jim put above is very similar to the line in the code
I sent.
My 'graybar' code was written after reading Jim's two columns in
The Guru 12+ years ago.
It's been awhile since I've used those examples and I don't have a
PCL5 type printer but the first long one is the old graybar
standard with 3 shaded lines followed by 3 clean lines. I think
one of the the others just alternates the bars. I do recall using
pieces of the code to do shading only where needed, such as an
invoice with only the data lines being gray-bared.
That code was all under FP 4.0 or 4.1 so it may be easier to
implement today.
Bill
--
Bill Vermillion - bv @ wjv . com
More information about the Filepro-list
mailing list