【发布时间】:2011-05-10 07:24:22
【问题描述】:
我已经拍摄了 1 张高质量图像并将其存储到某个地方
UIImage *image = [[UIImage alloc] initWithData:imageData];
NSArray *docDirs = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSAllDomainsMask, YES);
NSString *docDir = [docDirs objectAtIndex:0];
BOOL success = [UIImagePNGRepresentation(image) writeToFile:[docDir stringByAppendingPathComponent:@"test11.png"] atomically:YES];
我可以从 xcode 管理器中看到 图像分辨率非常高。 尺寸:2592 × 1936 ...大小6.1MB
我的问题是如何在 iphone 库中存储高质量的图像。我严禁存储压缩图像。我必须只存储高清高质量图像。
请不要回复 scaleAndRotateImage 函数,因为它会压缩图像。
【问题讨论】:
标签: iphone camera uiimagepickercontroller resolution