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

Home » Public Forums » archive » Re: Force 8bit display ?
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: Force 8bit display ? [message #47262] Thu, 02 February 2006 01:49 Go to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
L. Testut wrote:

> Hi everybody
> Do you know if it is possible to set the display depth at 8 bit
> instead of 24bits. I'll try :
> IDL> device, /pseudo_color ;but values are always set to default
> values
> By default when I start IDL visual_depth=24, and visual_name=TrueColor
> and Decomposed=1. I work on a laptop under LINUX debian.

Whether you can get an 8-bit display depends entirely on your X server and your
graphics card. Very few PC graphics cards have the ability to support different
bit-depth displays simultaneously, so you restricted to either an 8-bit display
or a 24-bit display; you can't have both at the same time. The XFree86/Xorg X
server doesn't currently provide any simulation of this either.

To see if your X server/graphics card supports different depth visuals you can
ask it. Run the command 'xdpyinfo' and it will tell you every visual that it
supports. If there is no PseudoColor 8 then you are out of luck. When you ask
IDL for a 8bit PseudoColor, if there is none available it will pick another
which most closely matches the one you asked for. How close that is is rather
"fuzzy".

If you really, really want an 8 bit display you could start up another X server
running at 8 bit, and then use that for IDL display. When I've done this on
RedHat I get two X displays, one accessed via the normal ctrl-alt-F7 and the
second by ctrl-alt-F8.

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Perpendicular symbol
Next Topic: Re: display line numbers in idlde?

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

Current Time: Wed Oct 08 18:21:53 PDT 2025

Total time taken to generate the page: 0.00314 seconds