我已经拍了一张高质量的照片,并把它存放在某个地方。
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函数,因为它会压缩图像。
发布于 2011-05-10 21:31:36
ALAssetsLibrary类将允许您这样做。
https://stackoverflow.com/questions/5946577
复制相似问题