---- Module: select_box.pro
---- From: $SSW/gen/idl/display
---> Call: PRO SELECT_BOX,MX,MY,IX,IY,DATA=DATA,INIT=INIT,FIXED_SIZE=FIXED_SIZE
; Outputs :
; MX, MY = Size of selected box, in device coordinates.
; IX, IY = Coordinates of lower left-hand corner of selected box.
; Keywords :
; DATA = If this keyword is set, then the values are in returned in
; data coordinates instead of device coordinates.
;
; The following keywords are only relevant when used on a graphics device
; that supports windows:
;
; INIT = If this keyword is set, MX, MY, and IX, IY contain the
; initial parameters for the box.
;
; FIXED_SIZE = If this keyword is set, MX and MY contain the initial size
; of the box. This size may not be changed by the user.
; Operation is as follows:
; Left mouse button: Move the box by dragging.
; Middle mouse button: Resize the box by dragging. The corner
; nearest the initial mouse position is moved.
; Right mouse button: Exit this procedure, returning the
; current box parameters.
Example:
IDL> plot_image,dist(200,100)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiFXGg1-a4dA5VCLeIkpOrErm9WMYiuEF3PT-fhlP-Yb0dqdMCOV3Fy4JnsQpSoqutSSMtpPE5K8rGZ6BAGJPzdgOMj7BMhCBDaYIq9jzyrMUN4lldN0nGDuYoQXaTyU628BVCMpLTSjcM/s400/selectbox_example_1.gif)
IDL> select_box,MX,MY,IX,IY,/data
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmUHXoCVxg5hLpJMNJie6E9G32UvxLmD8oDEUcGaXz3v424SevPGT8fTtfp9H9kfzrIBrYnRWMrSN00H6Y84DZlE_taOfJJ-NXFB6TcK3Jo6KAZ_y3yu1D1QwIRlCAzEifOi_Ll9AYScol/s400/selectbox_example_2.gif)
IDL> print,MX,MY,IX,IY
62.6728 39.1705 26.2269 40.7431
(Unit: pixel)
0 comments:
Post a Comment