Rotate image and crop only inside the image: UWP

六月ゝ 毕业季﹏ 提交于 2020-04-16 03:00:30

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!