resize/index.html

This is an example of resizing the enabled image

When the enabled element's width or height changes, you must call resize() so cornerstone can update the canvas width and height. Resizing will recenter the image and scale it so all pixels are visible.