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

Home » Public Forums » archive » BGR color instead of RGB
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
BGR color instead of RGB [message #41852] Tue, 07 December 2004 05:45
andry_william is currently offline  andry_william
Messages: 3
Registered: December 2004
Junior Member
Dear IDL users,

I have been looking on the group about a problem I am having with the
color.
This seems to be something a lot of people have already experienced
but I am not sure I found the solution on how to solve it.

Our group is thinking of buying IDL 6.1 so I am trying to test it on
our system.

I do a plot using

PLOT, randomu(n,20), color='ff0000'x, background='ffffff'x

it just comes out with a blue color (instead of red). It seems like it
uses BGR
table rather than RGB.

To make sure, I tried

PLOT, randomu(n,20), color='0000ff'x, background='ffffff'x

and indeed it shows a red plot.

I thought the problem comes only on my linux system (with
device,get_visual_depth=depth) returning 16, but I get the same kind
of color inversion when I try it on my Windows XP (with 32 bit color,
and returning 24 for the device,get_visual_depth)...???

I appreciate any input on understanding how I can get the right color
(I mean, the usual RGB color). What startup or configuration should I
use.

Thanks in advance,

Andry
[Message index]
 
Read Message
Previous Topic: Re: retrieving regions from a IDLanROIGroup
Next Topic: Re: test for ENVI running in IDL code

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

Current Time: Wed Oct 08 16:02:21 PDT 2025

Total time taken to generate the page: 0.00197 seconds