绘制左右翻转的图片



- (UIImage *)overturnImage:(UIImage *)image {
CGSize size = image.size;
UIGraphicsBeginImageContext(size);
CGContextRef context = UIGraphicsGetCurrentContext();

CGContextTranslateCTM(context, size.width, size.height);
CGContextScaleCTM(context, -1.0, -1.0);
CGContextDrawImage(context,CGRectMake(0,0, size.width, size.height), image.CGImage);

UIImage *turnImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return turnImage;
【绘制左右翻转的图片】}

    推荐阅读