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

Home » Public Forums » archive » Re: using TVRD(true=0) with a 24-bit image and decomposed=0
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: using TVRD(true=0) with a 24-bit image and decomposed=0 [message #38788] Mon, 29 March 2004 14:51 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Chris ODell" wrote in message...
> To all IDL color-masters,
>
> I am trying to simply read an image that was originally plotted like
> this:
>
> tv, image
>
> where image is a 2D byte-array of colors IN MY CURRENT COLORTABLE; ie,
> numbers from 0 to 255. However, I am on a 24-bit display. I have
> device, decomposed=0
> and backing-store set on retain=2.
>
> If i do this:
>
> im2 = tvrd()
> tv, im2
>
> I get way more color=255 than I should; i do not get back the precise
> original image. I understand that I can get the RGB triples by doing
> tvrd(true=1), but *I don't want the RGB triples*. I just want the
> simple numbers from 0 to 255 that I originally plotted. How do I get
> them using tvrd()?

Read Karl's message, then download David Fanning's TVREAD program.

http://www.dfanning.com/documents/programs.html#TVREAD

-Rick
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: How to set elements of arrays as blank (not zero)?
Next Topic: Finding the closest value in an array...

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

Current Time: Sat Oct 11 10:44:37 PDT 2025

Total time taken to generate the page: 1.83965 seconds