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

Home » Public Forums » archive » tvrd with a color table on a 24 bit device, true=0
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
tvrd with a color table on a 24 bit device, true=0 [message #38789] Mon, 29 March 2004 14:12
odell is currently offline  odell
Messages: 6
Registered: September 2003
Junior Member
Hello IDL color-masters,

I am trying to simply read the pixel colors from a window, previously
generated with a command like:

tv, image

where "image" is a 2D array of bytes from 0 to 255, and reflects my
current color table (#39, gotten from loadct, 39). I use retain=2,
decomposed=0 in my device.
I am on a 24-bit display (for certain).

When I do this:

im2 = tvrd()
tv, im2

I do not get what I had before in the window. I get a lot more white.
The basic structure is correct, but clearly the colors are getting
screwed up. I can do tvrd(true=1), but that gives me the RGB triples
and I don't want those, I just want my simple 0-255 color indices for
my current color table. How do I get them?

Thanks,
Chris
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Averaging quaternions
Next Topic: IDL sort to Matlab sort

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

Current Time: Fri Oct 10 14:13:15 PDT 2025

Total time taken to generate the page: 1.35915 seconds