-
Notifications
You must be signed in to change notification settings - Fork 27.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to zoom in/out on all images (#38538)
* Add ability to zoom in on small images * Update image viewer to allow pinch or click to zoom Images are now always centered in the window. They initially start at their native size, unless they would be larger than the window, in which case they are contained within the window. Clicking increases the zoom, and alt+click decreases it. Pinch to zoom and ctrl+scroll are also supported. * Update resourceViewer to improve image viewing experience ResourceViewer now holds a cache of image scales so they stay the same while flipping between editor tabs. Right clicking now returns the image to its original scale. Pixelation only triggers for images 64x64 or smaller, and only after the first zoom. Editor risizing is handled thorugh the layout call to the binary editor, passed down to the resource viewer.
- Loading branch information
Showing
3 changed files
with
138 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9081507
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just recently added some image snapshotting tests to a project to diff pixel art output. I am very excited for this update 💯