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

Home » Public Forums » archive » Using the most colors in tvscl
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Using the most colors in tvscl [message #6731] Sat, 03 August 1996 00:00
Walid is currently offline  Walid
Messages: 9
Registered: July 1996
Junior Member
Since there appear to be quite a few color experts out there, I was
wondering if anyone has addressed this problem. I'm running IDL 4.0.1
on a Windows 95 platform. The system variable !D.N_COLORS=65536, which
I assume means that this is the maximum number of displayable colors. I
have some 12-bit data (0-4095) that would ideally be scaled into 12-bit
color data--however, when using tvscl, although this is a "true-color
device", as indicated by help,/device, only 256 colors are displayed. I
tried making up a table via a=indgen(4096), tvlct,a,a,a, which should
give a grey-scale intensity image from 0-4095, but it does not appear to
affect the display (i.e. changing it to a=indgen(10) still gives the
same picture for dist(400)).

Would using the tvrd procedure to read back the data in its original
form be possible, since supposedly all those colors can be displayed?

Also, is there any way to get more than 255 colors out of plots, using
the color keyword?

Thanks,

Walid
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL with private colormap ?
Next Topic: Re: image printing

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

Current Time: Wed Oct 08 13:49:33 PDT 2025

Total time taken to generate the page: 0.00511 seconds