裁剪图像时遇到问题。我正在从文档文件夹中获取我的图像。裁剪后,我的图像在我的 uiimageview 中逆时针旋转。请帮忙。这是我用于裁剪的方法:
- (UIImage *)croppedImage:(CGRect)bounds {
CGImageRef imageRef = CGImageCreateWithImageInRect([self CGImage], bounds);
UIImage *croppedImage = [UIImage imageWithCGImage:imageRef];
CGImageRelease(imageRef);
return croppedImage;
}
这是我用来调用该方法的代码:
CGRect cropRect = CGRectMake(0,0,imageview.size.width, imageview.size.height)
UIImage *croppedImage = [previewImage croppedImage:cropRect];
有谁知道为什么我的图像被旋转?