Ian*_*ink 2 iphone rotation uiimage
从设备加载图像后,我需要将其旋转37.8度然后将其显示在视图上.
Objective-C中是否有可以进行图像旋转的功能?
伊恩
要旋转视图:
imageView.transform = CGAffineTransformMakeRotation(37.8°);
Run Code Online (Sandbox Code Playgroud)
要旋转图像,
CGContext通过UIGraphicsBeginImageContext.CGContextRotateCTM(UIGraphicsGetCurrentContext(), 37.8°);[yourImage drawAtPoint:...];UIGraphicsGetImageFromCurrentImageContext(); 并使用此图像.| 归档时间: |
|
| 查看次数: |
3969 次 |
| 最近记录: |