| Re: set_plot,'PS' and accurate colors? [message #33563 is a reply to message #33469] |
Wed, 08 January 2003 13:18  |
Mark Hadfield
Messages: 783 Registered: May 1995
|
Senior Member |
|
|
Dave:
> I tried the true_color keyword with "metafile" and cannot find a syntax
that it
> won't complain about. Tells me true_color cannot be used with the metafile
> device.
Hmm, looks like the documentation is wrong.
[Me:]
>> And, of course, you can write true-colour images to bitmap formats like
>>
>> TIFF, JPG and PNG.
[Dave:]
> If I rewrite all my code to not make line plots but rewrite 2-d arrays,
yes.
Assuming you have a 16-bit or 24-bit display, you can send your line
plotting commands to a window (or an off-screen pixmap created by "window,
/PIXMAP") then extract the image with "tvrd(/TRUE)".
There are lots of complications & subtleties associated with different
colour models in IDL direct graphics. I suggest you read everything you can
find on the subject at David's WWW site:
http://www.dfanning.com/
--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
|
|
|
|