- (UIImage *)croppedImage:(CGRect)bounds image:(UIImage *)origalImg{
CGImageRef imageRef = CGImageCreateWithImageInRect([origalImg CGImage], bounds);
UIImage *croppedImage = [UIImage imageWithCGImage:imageRef];
CGImageRelease(imageRef);
return croppedImage;
}
网友评论