comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » More Questions on 24 bit color
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: More Questions on 24 bit color [message #13508 is a reply to message #13336] Sat, 14 November 1998 00:00 Go to previous messageGo to previous message
Kevin Ivory is currently offline  Kevin Ivory
Messages: 71
Registered: January 1997
Member
Reinhold Schaaf (schaaf@astro.uni-bonn.de) writes:
> But, although the plot in the IDL-window is white (I mean: *really*
> white), the background color in the gif-image is not *really* white,
> but instead a light grey.

David Fanning wrote:
> Reinhold, I'm sorry to say that this problem cannot be laid
> on IDL's doorstep. This is a Windows problem. I just ran

Well, it is not a problem of MS Windows - Linux shows the same effect.
I think COLOR_QUAN gets something mixed up. Try this:

DEVICE, DECOMPOSED=0
tvlct, [0,255], [0,255], [0,255]
plot,sin(0.1*findgen(101)), color=0, back=1
tvlct, r, g, b, /get
print, r[0:1], g[0:1], b[0:1]
; 0 255
; 0 255
; 0 255
snapshot = TVRD(True=1)
image2D = COLOR_QUAN(snapshot, 1, r, g, b, COLORS=2)
print, r, g, b
; 248 0
; 248 0
; 248 0

I must admit, I didn't take the time to read all of those keywords to
COLOR_QUAN. Perhaps one of them already does the right thing. If not,
I'd say it is a bug in IDL (I use: 5.1.1 linux x86).

Best regards
Kevin
--
Kevin Ivory Tel: +49 5556 979 434
Max-Planck-Institut fuer Aeronomie Fax: +49 5556 979 240
Max-Planck-Str. 2 mailto:Kevin.Ivory@linmpi.mpg.de
D-37191 Katlenburg-Lindau, GERMANY http://www.gwdg.de/~kivory2/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cylindrical map projection screwed up?
Next Topic: Where should I put a preferences file?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:17:28 PDT 2025

Total time taken to generate the page: 0.00417 seconds