12345678910111213141516171819202122232425262728293031 |
- //
- // UIImage+Rotate.h
- // UIImage+Categories
- //
- // Created by lisong on 16/9/4.
- // Copyright © 2016年 lisong. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @interface UIImage (Rotate)
- /** 纠正图片的方向 */
- - (UIImage *)fixOrientation;
- /** 按给定的方向旋转图片 */
- - (UIImage*)rotate:(UIImageOrientation)orient;
- /** 垂直翻转 */
- - (UIImage *)flipVertical;
- /** 水平翻转 */
- - (UIImage *)flipHorizontal;
- /** 将图片旋转degrees角度 */
- - (UIImage *)imageRotatedByDegrees:(CGFloat)degrees;
- /** 将图片旋转radians弧度 */
- - (UIImage *)imageRotatedByRadians:(CGFloat)radians;
- @end
|