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

Home » Public Forums » archive » Re: <sigh> My color question
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: <sigh> My color question [message #27784 is a reply to message #27783] Wed, 07 November 2001 18:48 Go to previous messageGo to previous message
uk2 is currently offline  uk2
Messages: 8
Registered: June 1994
Junior Member
Hi Todd,

I had the same problem. Got a post on it, but it didn't work. The
problem is 24-bit with linux in 5.5. The solution is buried in the
recent tips on the rsinc site. Just add the following to your startup
file and you should be fine. Now, why this wasn't a problem in the beta
and only made it to the final release, I'll never know.


WINDOW, /PIXMAP & WDELETE
DEVICE, BYPASS_TRANSLATION=0

-Pete



Todd wrote:

> HI all...
>
> I swear I've spend the past several hours reading posts about it and
> trying different things, but it just wasn't working. I just installed
> a new dual processor system, and put on RedHat 7.2. I get IDL loaded,
> fire it up, and put in a simple command such as tv, dist(512,512) and
> get this image with vertical bars running through it. The same thing
> happens with Craig's plotimage routine.
>
> So, I looked around, and added the following lines to my IDL startup
> file:
>
> if( !version.os_family eq 'unix' ) then device, true_color=24
> window, /free, /pixmap, colors=-10
> wdelete, !d.window
> device,decomposed=0, retain=2
> device, get_visual_depth=depth
> print, 'Display depth: ', depth
> print, 'Number of colors: ', !d.n_colors
>
> Nothing really gets any better. (and I do get a display depth of 24
> bit). To boot, when I try loading color tables and replotting the
> image, the colors in the image don't change, but the position of the
> vertical bands in the image do.
>
> You can see the results here:
>
> This one is using Craigs plotimage (plotimage, bytscl(dist(512,512)))
> <http://checont6.ucsd.edu/todd/idl/dist.jpeg>
>
> This one is using tv (tv, dist(512,512))
> <http://checont6.ucsd.edu/todd/idl/disttv.jpeg>
>
> Here is help, /device:
>
> Available Graphics Devices: CGM HP LJ NULL PCL PRINTER PS REGIS TEK X
> Z
> Current graphics device: X
> Server: X11.0, The XFree86 Project, Inc, Release 40100000
> Display Depth, Size: 24 bits, (1152,864)
> Visual Class: DirectColor (5)
> Bits Per RGB: 8 (8/8/8)
> Physical Color Map Entries (Used / Total): 256 / 256
> Colormap: Private, 16777216 colors. Translation table: Bypassed
> Graphics pixels: Combined, Dither Method: Ordered
> Write Mask: 16777215 (decimal) ffffff (hex)
> Graphics Function: 3 (copy)
> Current Font: <default>, Current TrueType Font: <default>
> Default Backing Store: Pixmap.
>
> Thanks for any insight... I had seriously hoped to be able to avoid
> posting a color problem, but I'd rather get work done than look good.
>
> Todd
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: The status of IDL for Mac's (?)
Next Topic: Re: The status of IDL for Mac's (?)

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

Current Time: Sun Oct 12 05:49:21 PDT 2025

Total time taken to generate the page: 0.56247 seconds