You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing it out I noticed an issue where the saved image size would be somewhat too small. The resulting cropped image (saved to disk) appears to be cut off somewhat on the right / bottom at least.
The simplest test cases is:
Run sample program
Load any sample image
Select the entire image as the crop area
Save
Resulting saved image is smaller than the original
I am running in 120 DPI, I'm not sure if that is related to this issue.
Many thanks
The text was updated successfully, but these errors were encountered:
This is quite old issue, but additional comment probably won't hurt :)
It seems I encountered the same issue. Cropped image is more or less correct when using usual 24'' FHD, but when using 4K laptop display, only small part of cropped area is actually saved. I guess something is off with that DPI trickery inside GetCroppedBitmapFrame:
I personally don't need that BitmapImage related functionality, but this is probably the place to look if someone else will need this to work.
My use case is a bit different (more MVVM style): crop adorner is rendered upon preview image and I only need to get info on it's relative position and size for later batch processing. PR with these changes is almost ready if anyone else will need this.
Look like the when you load image, window do not properly resize by default.
Setting SizeToContent ="WidthAndHeight" in CroppingWindow.xaml solve this issue
Thanks for posting your code for this project.
Testing it out I noticed an issue where the saved image size would be somewhat too small. The resulting cropped image (saved to disk) appears to be cut off somewhat on the right / bottom at least.
The simplest test cases is:
I am running in 120 DPI, I'm not sure if that is related to this issue.
Many thanks
The text was updated successfully, but these errors were encountered: