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

Home » Public Forums » archive » 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
using TVRD(true=0) with a 24-bit image and decomposed=0 [message #38792] Mon, 29 March 2004 12:18 Go to previous message
odell is currently offline  odell
Messages: 6
Registered: September 2003
Junior Member
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()?

Thanks anyone who can help with this!
Chris O'Dell
[Message index]
 
Read Message
Read Message
Previous Topic: Huge Maps & a device for faking a large window
Next Topic: problems printing to a postscript file

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

Current Time: Fri Oct 10 17:54:44 PDT 2025

Total time taken to generate the page: 0.72006 seconds