Java Window/Level -- Hand XRay
This page should work with Netscape 3.0 or Internet Explorer 3.0.
The applet below demonstrates 2 image manipulation objects:
Grayscale Window/Level Control
Moving the mouse to the left side of either image will activate
a window/level control.
Change the upper and lower gray level window limits by clicking
and dragging in the red triangles or moving up/down/left/right
within the red box.
Try it in the right hand viewer (before zooming) to get a feel
for it.
Zoom/Pan Box
The 'z' key toggles a zoom box on and off in the left hand viewer.
Pressing the left mouse button while the zoom box is active will
zoom the enclosed region into the right hand viewer.
Holding the left mouse button down while moving the mouse will
pan the zoomed region in the right hand viewer interactively.
Pressing '+' will increase the zoom factor by 0.5.
Pressing '-' will decrease the zoom factor by 0.5.
The gray levels may be manipulated independently in the two viewers.
|
 |
|
|
Note: Sometimes the ImageProducer and ImageConsumer get out of
sync and the image draw fails to complete. It needs a little
bump. Click anywhere in the image to force an update.
I have only tested this applet on Unix platforms using Netscape 3.0.
I would appreciate hearing about any problems on other platforms
or when using Internet Explorer 3.0. Thanks.
The image used is a 23KB, 920x690 pixel, 8-bit, progressive JPEG made
from 620KB of 8-bit raw data using the IJG compression software using a
50% quality setting.
Created 10/05/96 by Andrew Barclay,
abb@nuccard.eushc.org
Updated 10/05/96 by abb@nuccard.eushc.org