displayImage api - cornerstonejs/cornerstone GitHub Wiki
The displayImage api call is used display a new image in an enabled element. The image is immediately updated/redrawn.
function displayImage(element, image, viewport);
Parameters:
- element - the DOM element to display the image to
- image - the image object to display
- viewport - the viewport properties to display the image with initially. This parameter is optional - default values will be applied if this is not specified
Returns: Nothing