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

Home » Public Forums » archive » xmanager, /managed
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: xmanager, /managed [message #44743 is a reply to message #44662] Sun, 10 July 2005 23:57 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Benjamin Hornberger wrote:

> There's two things:
>
> 1. The widget program has to use indexed color mode (decomposed=0)
> because I want to be able to use those pretty predefined color tables.
> Or are you telling me one can do that with decomposed color as well?
> Also, I am using the same code for screen and PS output ...

Well, this is the point of TVImage, IMGDIST, etc. You can work
in DECOMPOSED=1 mode and *still* use color tables because the
programs are smart enough to put you in the correct mode when
they display the image. And, of course, they are also smart
enough to know when the are outputting to a device like PS
and so can do the proper thing there, too. (Including, not so
incidentally, sizing and positioning the image on the PS page.)

> 2. In my programs, I am trying to handle colors properly and use
> tvimage. However, when using the command line, things have to be quick.
> And "tvscl, array" can be typed much faster than "tvimage,
> bytscl(array), /tv". Yes, I could write a wrapper, but even that doesn't
> help if I am in decomposed=0 mode and some program loaded extra colors
> somewhere in the color table. Maybe decomposed=1 is the way to go on the
> command line -- usually, I don't need fancy color tables in that case.

Forget writing the wrapper. I've already done it for you: :-)

http://www.dfanning.com/programs/tvscale.pro

> Maybe decomposed=1 is the way to go on the
> command line -- usually, I don't need fancy color tables in that case.

Well, it is the way I go. I think. As I say, I haven't
really looked in a couple of years. :-)

Cheers,

David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: CVS and IDL - RCS tags
Next Topic: IDL and FreeBSD

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

Current Time: Sat Oct 11 11:22:47 PDT 2025

Total time taken to generate the page: 1.27946 seconds