-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Screenshot feature produces pixelated low-res image for larger windows #120
Comments
Will have a look when i am back home. But remember that zooming in the magnifier does not zoom an image. It zooms the UI which means it's a vector graphic. When taking a screenshot it produces a pixel based image. You will never get the same zoom quality when comparing vector to pixel images. |
I know, I was thinking that the screenshot feature first zooms the vector wpf according to the dpi setting, and then takes that screenshot. What else is the dpi setting otherwise for? That's even what the original contributor claims where I found the feature described first: https://qmino.wordpress.com/2010/09/20/high-res-screenshots-of-wpf-apps/ Interestingly, the screenshot feature does vector zoom a bit, just not anywhere near the claimed dpi for a larger window. When "screenshotting" the radio button control only, the vector zoom is much better, but it introduces a new problem: The image gets distorted. See how the radio button is not round anymore? Compare that with the tree preview: My guess is: The screenshot feature tries to zoom but gets somehow limited by the actual screen size. If that's a WPF renderer limitation, the magnifier and preview seem not to be limited by it. So a solution could be to take the zoomed screenshot in multiple zoomed parts and stitch the raster image together. Similar as to how high-dpi browser screenshot tools do it (eg. Chrome -> Print full screen). |
Ok. That looks wrong. Will have a look in about a week. |
So a week was a bit optimistic. |
@djkrose i finally found some time to investigate this further and indeed the quality is way below what can be expected when increasing the DPI for the image. |
Glad you could find it. Thanks for investigating! |
Isn't the screenshot feature supposed to produce high-res images depending on the dpi setting? - Doesn't work for me.
Snoop gives me a crystal clear magnifier zoom and zooms perfectly in the preview area as well, but when I click on the screenshot icon, chose 600 dpi, it produces a pixelated mess. Looks like 96 dpi just upscaled.
For reproduction, I created a simple dummy WPF app, .Net Framework 4.6.1, with just 3 controls.
WpfApp1.zip
My WPF app: Large window, 3 controls...
Perfectly zoomable in preview area
Taking screenshot, 600 dpi ...
Result file:
Looking closer into the result file ...
So what is happening here?
When I test with a very small window the end result looks better. Is the actual resolution somehow limited by the screen resolution (1920x1080)? But why does magnifier and preview look so good then?
Tested with Snoop 2.10.0
The text was updated successfully, but these errors were encountered: