Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve current image from specific View #224

Open
lebenwielarry opened this issue Jan 18, 2024 · 1 comment
Open

Retrieve current image from specific View #224

lebenwielarry opened this issue Jan 18, 2024 · 1 comment

Comments

@lebenwielarry
Copy link

I'm using the Papaya viewer to display medical images, and I'm currently facing an issue with retrieving a specific view's image when the viewer's HTML element is a canvas. The problem is that when I try to get the image, I only receive the entire canvas content, rather than the specific image I want.
Is there a JS function I can use to retrieve a specific image from the canvas?

  • Papaya viewer version: 1.0.1455
  • Browser: Safari
  • Operating System: MacOS
@niks2060
Copy link
Contributor

niks2060 commented Mar 5, 2024

this.selectedSlice will give you selected one also try and fine FindImage from ScreenVolume.js you will find logic to find current image from canvas. Hint : this.volume.header.imageDimensions.zDim for MainImage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants