标签:
不废话,贴代码.这里对图片进行了旋转操作
方法写在UIImage的类别里
- (UIImage *) croppedImage:(CGRect)cropRect { CGImageRef croppedCGImage = CGImageCreateWithImageInRect(self.CGImage ,cropRect); UIImage *croppedImage = [UIImage imageWithCGImage:croppedCGImage scale:1 orientation:self.imageOrientation]; CGImageRelease(croppedCGImage); return croppedImage; }
标签:
原文地址:http://blog.csdn.net/broccoliii/article/details/45060233