开发者

UIImage Pixel rotation

开发者 https://www.devze.com 2023-01-29 22:36 出处:网络
I\'m looking for a snippet of code that will demonstrate UIImage Pixel rotation. all the example I found so far was not very clear. Basically I want to give my user the options to rotate 开发者_运维技

I'm looking for a snippet of code that will demonstrate UIImage Pixel rotation. all the example I found so far was not very clear. Basically I want to give my user the options to rotate 开发者_运维技巧his image after he took a picture with the camera.

Thanks for your time.


Theres some great categories which show the transforms you can apply to UIImage available here http://www.platinumball.net/blog/2010/01/31/iphone-uiimage-rotation-and-scaling/


You can consider a CGAffineTransform that applies a rotation to the UIImageView, considering that a UIImageView is a subclass of UIView

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号