I'm playing a bit with AMI Medical Imaging (AMI) JS ToolKit. Is there a way to move the windowing to a mouse event like right click & move?
I know that it's possible to change window/level with the menus on the examples, but I would like to change the controller to do it moving the mouse.
Thanks!
To control the window/level by moving the mouse you will have to listen to the
mousemouve
event then update thestackHelper -> slice -> windowWidth/Center
as you wish.You could enable window/level if the user press
shift
:Then update the window/level on mouse move:
See a live demo at (shift + mouse move to control the window level): http://jsfiddle.net/vabL3qo0/41/