Go up one levelGo to Previous Go to Next

Zoom Window

The zoom window displays a magnified area of the image by tracking mouse pointer motion events. The zoom factor and window size are configurable and the user can turn zooming on and off via a toggle button.

Here is an example, taken from the RtdImageCtrl code, that creates and packs a zoom window:

 
pack [RtdImageZoomView $this.zoom \ 
    -target_image $this \ 
    -width $zoom_width -height $zoom_height \ 
    -factor $zoom_factor \ 
    -usexshm $usexshm \ 
    -bd 3 -relief groove] \ 
    -side left -fill y -in $panel

See the man page RtdImageZoomView(n) for an explanation of the options used.


Go up one levelGo to Previous Go to Next

Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory