以编程方式设置iphone中的图像分辨率?

时间:2012-03-20 11:06:52

标签: iphone ipad

有没有人有处理图像分辨率的经验?可以用Iphone / ipad吗?

1 个答案:

答案 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.