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

Home » Public Forums » archive » zimage question.....(David, are you out there?)
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
zimage question.....(David, are you out there?) [message #17329] Fri, 08 October 1999 00:00
Richard G. French is currently offline  Richard G. French
Messages: 65
Registered: June 1997
Member
This is really a question for David F. but since it involves color, I
thought others might like to try it out and tell me what I am doing
wrong.
I'm using David's ZIMAGE routine - a nice image zoomer - and trying to
add a few bells and whistles - that all seemed to work fine - but here
is
what I don't understand.

zimage, image
; displays a nice image, I can zoom, change colors, etc.

zimage, anotherimage
; displays a nice image, which I can also zoom, etc.

Both windows stay on the screen at the same time. Here is the part I
don't understand. (I'm running on 24-bit color screen)

Let's say in the first instance of zimage, I say that I want to change
the colors. The color table widget shows up, and I can change the colors
in the first instance, along with the zoom window associated with this
instance.

Then, I go to the second instance, and say that I want to change the
colors of THAT set of windows. If I have not killed the previous
color table widget, that is the one the gets reactivated, and the colors
don't get changed on the second set of windows, as I would like, but on
the first set of windows. Somehow, the event handler is not figuring out
which instance of zimage is doing the calling, and the second set of
windows does not get updated.

I've tried various permutations of this, such as closing the color
widget
and trying to start it up from scratch in the second instance of zimage,
but I cannot find a reliable way to get it to set the colors on the
windows
from which I called the color table widget.

Can 'someone' tell me what I need to do to get the colors to change for
the widget from which I call the color table changer?

(These results happen with David's zimage routine and with my modified
version, which so far simply adds an option to display the zoomed image
using SAMPLED pixels instead of interpolation - this is useful for
astronomical images.)

Thanks, David!

Dick French
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Shareware Photomosaic Program
Next Topic: Re: IDL time test with a PowerMac G4

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

Current Time: Fri Oct 10 11:28:29 PDT 2025

Total time taken to generate the page: 0.08151 seconds