device, true_color=24, decompose=0 [message #15788] |
Mon, 14 June 1999 00:00 |
Gary Fu
Messages: 9 Registered: April 1997
|
Junior Member |
|
|
Hello,
Based on the IDL documentation the "decomposed=0" for the "device"
command allows users with TureColor displays to use IDL programs written
for standard, PseudoColor displays without modification. But I don't
understand why I got
different results in the following two idl codes:
device, pseudo=8
window, xsize=100, ysize=100
erase, 50
print, min(tvrd()) ; print out 50
tvlct, 100, 100, 100, 50
erase, 50
print, min(tvrd()) ; print out 50
****************************************************
device, true_color=24, decompose=0
window, xsize=100, ysize=100
erase, 50
print, min(tvrd()) ; print out 50
tvlct, 100, 100, 100, 50
erase, 50
print, min(tvrd()) ; print out 100
--
Thanks.
*****************************************
* Gary Fu, GSC (301) 286-7107 *
* email : "gfu@seadas.gsfc.nasa.gov" *
* NASA/Goddard Space Flight Center *
*****************************************
|
|
|