Open MaksimShymko opened 2 years ago
I don't have an answer to your question, but I am curious what you are trying to accomplish with the layersApi, perhaps there is a different workaround
@shanebenlolo I want to display a CT scan and can perform windowing, panning, and zooming operations. Also, I want to put a png image overlay on top of the CT scan. CT scan and overlay should be synchronized during panning and zooming.
I am considering three solutions:
Maybe there is another approach that mitigates all cons?
Have you considered using the react-vtkjs-viewport? https://react-vtkjs-viewport.netlify.app/
cornerstone-core
version: 2.6.0I've faced the issue that images added with
addLayer
don't use WebGL. There is a code in the internal functiondrawImageSync
which adds conditional branching:Currently, WebGL works only for
displayImage
function. But it isn't possible to combine multiple images on the same canvas withdisplayImage
.