like this (note the yellow leaves and black corner):
像这样(注意黄叶和黑角):
and without flip container view. because I want to make a crop tool like iOS 9's Photos.app with flip feature. if flip container view, some user interaction will be different
没有翻盖容器视图。因为我想制作像iOS 9的Photos.app这样具有翻转功能的裁剪工具。如果翻转容器视图,一些用户交互将会有所不同
PhotoTweaks is a good start, I just want flip content in the crop box
PhotoTweaks是一个好的开始,我只想在裁剪框中翻转内容
I think there is a way can implement this by just change the picture view's transform. but what I do just work on some angle,not all. my test code at Github
我认为有一种方法可以通过改变图片视图的变换来实现这一点。但是我的工作只是在某个角度而不是全部。我在Github的测试代码
maybe I can make all angle works by try many times, like enum. but It not what I want. I want a math calculation method and theory.
也许我可以通过多次尝试来制作所有角度的作品,比如枚举。但这不是我想要的。我想要一个数学计算方法和理论。
forgive my poor English.
原谅我可怜的英语。
1 个解决方案
#1
0
I think I've solved the problem with simple solution.
我想我已用简单的解决方案解决了这个问题。
Just make the angle between 0 - 360 degrees before rotation, and then the code work for all angle.
只需在旋转前使角度在0 - 360度之间,然后代码适用于所有角度。
这是Github的代码。
this question is different with How to flip UIImage horizontally?, I think the duplicate tag need be removed.
这个问题与如何水平翻转UIImage不同?我认为需要删除重复的标签。
#1
0
I think I've solved the problem with simple solution.
我想我已用简单的解决方案解决了这个问题。
Just make the angle between 0 - 360 degrees before rotation, and then the code work for all angle.
只需在旋转前使角度在0 - 360度之间,然后代码适用于所有角度。
这是Github的代码。
this question is different with How to flip UIImage horizontally?, I think the duplicate tag need be removed.
这个问题与如何水平翻转UIImage不同?我认为需要删除重复的标签。