Giter Club home page Giter Club logo

Comments (1)

1j01 avatar 1j01 commented on May 24, 2024

There is a feature request for a persistent zoom setting.
That said, I think maybe the app is supposed to scale the canvas for HiDPI displays, I don't remember...
OK, looking at the code, it was left as a question mark in a comment:

render_canvas_view(thumbnail_canvas, 1, viewport_x, viewport_y, false); // devicePixelRatio?

Thinking about this some more...

  • The current approach favors consistency in the physical size of an image file viewed across devices, but at the clear detriment of the screenshot editing use case, as you've pointed out.
  • Changing it so the app scales the canvas by the device pixel ratio...
    • would make existing drawings appear smaller when reopened. This will cause some confusion for a time, but new images will naturally be created at the new default scale, or people will learn to zoom in if they prefer a lower resolution canvas. The MS Paint UI does at least make it easier to zoom in than zoom out, as you can use the Magnifier tool.
    • This new approach would make screenshots created on the same device appear at the correct size, although screenshots from other devices would have no such guarantee. In fact, the reverse problem could occur: a screenshot taken on a 1 DPI screen, when viewed on a 2 DPI screen, would appear half the size, whereas currently it would appear at a more reasonable size.
  • It's also possible these screenshots may embed some DPI information that could be queried, although this seems like a can of worms, especially since not all programs would preserve this information.

from jspaint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.