Using the most colors in tvscl [message #6731] |
Sat, 03 August 1996 00:00 |
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
|
|
|