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;