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

Home » Public Forums » archive » Question about selecting images from Draw Widgets
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Question about selecting images from Draw Widgets [message #53059] Fri, 16 March 2007 10:05 Go to previous message
gearoid.k is currently offline  gearoid.k
Messages: 6
Registered: March 2007
Junior Member
Hello

I am designing GUI, I have multiple draw widgets on screen at one
time. I am able to select the desired widget and find its ID but
cannot get access to the image that it is showing. For example, when a
user clicks on a draw widget, it takes that image and displays it in a
larger window. I imagine the code might look something like this:


;************begin

;Find the display widget that contains the desired image
wDISPLAY_IMAGE_1 = WIDGET_INFO(Event.top,
FIND_BY_UNAME='DISPLAY_IMAGE_1');
;Make sure something was found.
IF(wDISPLAY_IMAGE_1 GT 0)THEN BEGIN

;code to assign the variable 'image' to the contents of
DISPLAY_IMAGE_1
ENDIF

;Now find main display
wMAIN_DISPLAY = WIDGET_INFO(Event.top,
FIND_BY_UNAME='MAIN_DISPLAY');
;Make sure something was found.
IF(wMAIN_DISPLAY GT 0)THEN BEGIN

;Resize image for larger display
image = CONGRID(image, 512, 512)
TV, image

ENDIF

;***************END

I am aware I can set the u_value to the image but this does not work
if I wish to use a few different images.

Any help would be greatly appreciated.

-Ger.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Printing Graphic or saving graphic
Next Topic: Convolving a gaussian into an image

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

Current Time: Fri Oct 10 23:02:27 PDT 2025

Total time taken to generate the page: 1.28065 seconds