bug-ghostscript
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Invert colors with ghostscript


From: Nuno J. Silva
Subject: Invert colors with ghostscript
Date: Sun, 06 Apr 2008 08:24:09 +0100
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.1 (gnu/linux)

I've been doing research on how to invert the colors of a document which
is being viewed with gv (or any other ghostscript-based viewer). 

ATM, the only thing I found is a small trick which works with some
files, not all (adding the command "{1 exch sub} settransfer" at the
beginning  of the file), but this does not work with every file, and as
postscript and pdf documents are formats to be used with printers, not
screens, all of them are generated using white background and black
foreground (that being the right color set for printing), it would be,
IMHO, cleaner if this sort of "magic" was made by gv, or better, by
ghostscript.

So, I wonder if there's any ghostscript options to invert colors (white
is changed for black (and vice-versa), images are turned into negatives,
etc.).

-- 
Nuno J. Silva (aka njsg)
LEIC student at Instituto Superior Técnico
Lisbon, Portugal
Homepage: http://njsg.no.sapo.pt/
Gopherspace: gopher://sdf-eu.org/11/users/njsg
Registered Linux User #402207 - http://counter.li.org

-=-=-
Windows 95 has been operating for 2 hours, 32 minutes. No errors
reported. CALL GUINESS BOOK OF WORLD RECORDS NOW!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]