UIRotationGestureRecognizer用于旋转图像

时间:2014-08-18 09:19:48

标签: ios

UIRotationGestureRecognizer在iOS中使用旋转图像。旋转后以相同的角度保存图像

如何以相同的角度保存图像

[image1 drawInRect:CGRectMake(xx1,yy1, img1Width-5, img1Height-50)];
// Apply supplied opacity if applicable
[image2 drawInRect:CGRectMake(0,0,newSize.width,newSize.height) blendMode:kCGBlendModeNormal alpha:0.8];

UIImage *resultingImage = UIGraphicsGetImageFromCurrentImageContext();

UIGraphicsEndImageContext();
return resultingImage;

0 个答案:

没有答案