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

No support for retina/high-DPI displays #276

Open
j-f1 opened this issue Mar 3, 2022 · 2 comments
Open

No support for retina/high-DPI displays #276

j-f1 opened this issue Mar 3, 2022 · 2 comments

Comments

@j-f1
Copy link

j-f1 commented Mar 3, 2022

Currently, users with a Retina/HiDPI display see a pixellated image, even if the actual image is much higher resolution. It would be great to check the devicePixelRatio property and multiply visible canvas resolutions by that value to make things render pixel-perfect ✨

I tried to do this (using this method to scale the user visible canvas contexts appropriately), but it didn’t seem to work very well, probably because of how the canvas content is copied from another canvas. I’m not sure how deep the changes need to go for this to work right.

@billdenney
Copy link
Contributor

Is this somewhat similar to #176? Specifically, is the source you're working from some form of vector graphic like a .pdf?

@j-f1
Copy link
Author

j-f1 commented Apr 27, 2022

No, my source is a (somewhat low-resolution) raster source, but the actual UI elements (like the dots and such added by WPD) are what I’m talking about here — as well as the image itself when zoomed out.

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

No branches or pull requests

3 participants