问题
I have a question. I need to crop a rotated image but the crop rectangle must feet in the image. I'm using Microsoft toolkit for cropping the image but it does not support cropping rotated image, so I added rotation to image and now my problem is to fit the cropping rectangle into the rotated image and not let it get outside of the image. In the images below I'm showing cases. If there is something you need to know to answer this question write it I will add.
Not rotated image
Rotated image..
What I'm expecting to get
Update: Link to the project https://github.com/Hakobyan888/ImageCropper
来源:https://stackoverflow.com/questions/60740881/rotate-image-and-crop-only-inside-the-image-uwp