【问题标题】:How to store high quality image in iphone Library?如何在 iphone Library 中存储高质量的图像?
【发布时间】: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


    【解决方案1】:

    ALAssetsLibrary 类可以让您做到这一点。

    【讨论】:

    • 谢谢我用过同样的:)
    猜你喜欢
    • 1970-01-01
    • 2018-02-16
    • 2013-03-17
    • 1970-01-01
    • 2011-09-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多