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

Add support for cropping function to work when zoomed in #44

Open
Ruben2776 opened this issue Sep 25, 2021 · 0 comments
Open

Add support for cropping function to work when zoomed in #44

Ruben2776 opened this issue Sep 25, 2021 · 0 comments
Labels

Comments

@Ruben2776
Copy link
Owner

Currently the crop function do not save correctly when zoomed in, since I do not know how to calculate that.

The zoom function is based on a heavily modified version of ZoomBorder.cs, which is based on changing the values of ScaleTransform and TranslateTransform. My code is at /PicView/UILogic/TransformImage/Zoom.cs

The cropping is based on https://github.com/dmitryshelamov/UI-Cropping-Image my code is at PicView/Editing/Crop

GetCrop() line 136 in CropFunctions.cs is where the calculation takes place. ImageMagick libraries takes care of the actual cropping.

@Ruben2776 Ruben2776 pinned this issue Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant