Function: renderToCanvasCPU()
renderToCanvasCPU(
canvas
,imageOrVolume
,modality
?,_renderingEngineId
?,_viewportOptions
?):Promise
<CanvasLoadPosition
>
Renders a cornerstone image object to a canvas. Note: this does not load the image but only takes care of the rendering pipeline
Parameters
• canvas: HTMLCanvasElement
Canvas element to render to
• imageOrVolume: IImage
| ImageVolumeProps
• modality?: string
• _renderingEngineId?: string
• _viewportOptions?: ViewportInputOptions
Returns
Promise
<CanvasLoadPosition
>