有没有人有处理图像分辨率的经验?可以用Iphone / ipad吗?
答案 0 :(得分:1)
-(UIImage*)processImageRect:(UIImage*)image:(CGSize)size:(CGSize)originalSize {
// Draw image1
UIGraphicsBeginImageContext(originalSize);
[image drawInRect:CGRectMake(0.0, 0.0, size.width, size.height)];
UIImage *resultingImage = UIGraphicsGetImageFromCurrentImageContext();
return resultingImage;
}
//This function will be helpful to you.