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

Home » Public Forums » archive » TVRD, true color, indexed color, bit depth
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
TVRD, true color, indexed color, bit depth [message #50324] Mon, 25 September 2006 11:46
MarioIncandenza is currently offline  MarioIncandenza
Messages: 231
Registered: February 2005
Senior Member
TVRD has the following behavior, explained in the help: "If the display
is a 24-bit display, and both the CHANNEL and TRUE parameters are
absent, the maximum RGB value in each pixel is returned."

Can I just say, this can produce some amazing results.

Anyway, now that I have figured out what it is doing, how do I make it
stop doing that? In my experience, setting DEVICE,DECOMPOSED=0 and
loading a color table have always given the right results with TVRD
(map of color indices). But not this time.
For some reason, even after calling DEVICE,DECOMPOSED=0, IDL still
thinks my display is 24-bit. How do I fix?

IDL> help,/device
Available Graphics Devices: CGM HP LJ NULL PCL PRINTER PS REGIS TEK X Z
Current graphics device: X
Server: X11.0, WRQ, Inc., Release 8
Display Depth, Size: 24 bits, (2560,1024)
Visual Class: TrueColor (4)
Bits Per RGB: 8 (8/8/8)
Physical Color Map Entries (Emulated / Actual): 256 / 256
Colormap: Private, 16777216 colors. Translation table: Bypassed
Graphics pixels: Combined, Dither Method: Ordered
Write Mask: 16777215 (decimal) ffffff (hex)
Graphics Function: 3 (copy)
Current Font: <default>, Current TrueType Font: <default>
Default Backing Store: Req from Server.
Window Status: ---------------------
[Message index]
 
Read Message
Previous Topic: Re: Degrees conversion
Next Topic: Re: TVRD, true color, indexed color, bit depth

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

Current Time: Sat Oct 11 11:26:48 PDT 2025

Total time taken to generate the page: 1.60447 seconds