In article <7j0u0s$7o...@nnrp1.deja.com>,
gregh
...@my-deja.com wrote:
> I've got an image in postscript format that I need to print inverted
> (ie: white->black and black->white, not rotated or mirrored). GSview
on
> the PC doesn't seem to have this ability. Is there a postscript
command
> to cause a page to print in inverse?
The most reliable way to do this is by setting up transfer functions
outside the main PostScript code. Then, assuming the code you're
printing doesn't further muck with the transfer functions, you should
get the effect you want.
The simplest (Level 1) approach is something like
{1 exch sub} settransfer
To be polite, you should consider that fact that there may already be a
transfer function set, and concatenate it to yours:
[currenttransfer //exec {1 exch sub} //exec] cvx bind settransfer
I think that's right. I haven't actually tested this code. If you
want to deal with separate transfer functions for separate colors,
etc., it gets more complicated, but it's about the same idea. That's
left as an exercise for the reader.
-pd
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.