[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need Help with PRINTER Problem
David Fanning (email@example.com) writes:
> I think I have identified a bug that has been driving
> me absolutely insane for the past 24-hours!
Indeed, RSI confirms this behavior, in which a single
color is loaded into the color table in the PRINTER
device at *any* location and then becomes the background
color, is a bug.
The color, however, is only "officially" loaded into
the correct position in the color table, so one work-around
is to simply get and reload the color table vectors. My
code looks something like this:
yellow = GetColor("yellow", !D.Table_Size-3) ; Load single color
TVLCT, r, g, b, /Get ; These two lines are work-around.
TVLCT, r, g, b
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: firstname.lastname@example.org
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155