Closed KiDeokKim closed 3 years ago
when i call enable -> loadimage -> displayimage , it is showing image from canvas.
and if i click button, i need to toggle hide/show function.
so if i clicked button, disable function is work. (hide dicom image)
but re-clicked button, enable function is not work. why?
here is my sample code ` //show function
cornerstone.enable(this.prevCanvas); const imageId = cornerstoneWADOImageLoader.wadouri.fileManager.add(targetFile); cornerstone.loadImage(imageId).then(image => { cornerstone.displayImage(this.prevCanvas, image); });
//hide function
cornerstone.disable(this.prevCanvas);`
What's wrong? and if i call re-show function, error is occured.
maybe if i call disable function, canvas still remain indelible.
I'm just running into it. Have you solved it yet
when i call enable -> loadimage -> displayimage , it is showing image from canvas.
and if i click button, i need to toggle hide/show function.
so if i clicked button, disable function is work. (hide dicom image)
but re-clicked button, enable function is not work. why?
here is my sample code ` //show function
//hide function
What's wrong? and if i call re-show function, error is occured.
maybe if i call disable function, canvas still remain indelible.