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

Home » Public Forums » archive » device, get_decomposed 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
device, get_decomposed question [message #17171] Tue, 14 September 1999 00:00 Go to previous message
Daniel Peduzzi is currently offline  Daniel Peduzzi
Messages: 29
Registered: June 1999
Junior Member
The use of the "get_decomposed" query seems to be affecting the
way my images are displayed. If I comment out the second device
command, I see the expected behavior: the second image contains
shades of red. If I leave the command in, I get another grayscale image.

Why would a query command affect any kind of display operation?
I'm sure I'm missing something here.



device, true_color=24, decomposed=0

; The appearance of the last image depends upon whether the next line is commented out
device, get_decomposed=isDecomposed

; Load grayscale color tables
r = indgen(256)
g = indgen(256)
b = indgen(256)
tvlct, r, g, b

; Make a simple image and display it
image = indgen(128,128)
image = bytscl(image)
window, 30, xsize=128, ysize=128
tv, image

stop ; and look at the pretty grayscale image

; Now reload the color tables so that only a red component is present.
g(*)=0
b(*)=0
tvlct, r, g, b

tv, image ; Hopefully, I'm seeing red

end
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Russia
Next Topic: Unix command line arguments to IDL program?

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

Current Time: Wed Oct 08 17:36:20 PDT 2025

Total time taken to generate the page: 0.00415 seconds