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

Home » Public Forums » archive » Re: ZOOMING,status bar,.SAV File
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: ZOOMING,status bar,.SAV File [message #43976] Sat, 07 May 2005 09:59
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
vinesh writes:

> Please suggest,guide, provide coding help to implement the following
> problems:
>
> PRO OpenImage, ImageFile=imagefile
> imagefile = Dialog_Pickfile(Filter='*.jpg', Title='Open Image File...')
> Read_JPEG, imagefile, image
> ss = Size(image, /Dimensions)
> DEVICE,DECOMPOSED=0
> Window,XSize=ss[0], YSize=ss[1]
> TV, image
> END
>
>
> 1. How can we make status bar of the window so that X,Y coordinates
> values by Mouse movement can be shown in this status bar.
>
> 2. Have ZOOM IN, ZOOM OUT functionality by any method.

This kind of thing is called an "IDL program", and
people who use IDL get used to writing them. You can find
examples of how it is done, but basically, you have
to write a "widget" program (using IDL widgets) and
you have to respond appropriately to widget "events".

Here are some example programs that you can adapt for
your purposes:

http://www.dfanning.com/tip_examples/read_pixel.pro
http://www.dfanning.com/programs/zimage.pro

You can also get a great deal of this functionality just
by putting your image into the appropriate iTool:

iImage, image
>
> 3. I am creating .SAV file using
> SAVE,/ROUTINES,FILENAME="Openimage.sav'
>
> .SAV file is creating and executing well but this shows window as a
> blink and did not stopped for display. Please resolve this.

I'm afraid you will have to resolve it yourself by writing
a widget program to display your image. You might try this one:

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

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Previous Topic: ZOOMING,status bar,.SAV File
Next Topic: Syntax mistake?

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

Current Time: Fri Oct 10 11:16:00 PDT 2025

Total time taken to generate the page: 4.38495 seconds