2010-06-16 87 views
0

Gentelmen, 是否有可能以RAW格式编写照片?我特别对com.cannon.cr2-raw-image UTI类型感兴趣。使用Core Graphics编写RAW文件

CGImageDestinationCreateWithData对于给定的UTI返回<Error>: CGImageDestinationCreate type doesn't support writing

我可以安装一些额外的编解码器吗?可能是一些特殊的图书馆,甚至没有CoreGraphis或任何其他想法?

回答

0

你拼错了公司的域名。该公司的名称是“佳能”,就像宗教或文学或音乐术语,而不是“大炮”,就像海军的武器。 The correctly-spelled UTI is listed as natively supported.

+1

对,对不起,我是通过内存写的,它是:'com.canon.cr2-raw-image'但它没有改变任何东西,它不支持写入,这就是为什么我是要求其他库/编解码器或解决方案。 打印支持写入类型: CFArrayRef types = CGImageDestinationCopyTypeIdentifiers(); CFShow(types); 显示在我的Mac以下列表: public.png,public.jpeg,com.compuserve.gif,public.jpeg-2000,public.tiff,com.adobe.photoshop形象,com.adobe.pdf, com.microsoft.bmp,com.apple.pict,com.truevision.tga-image,com.sgi.sgi-image,com.ilm.openexr-image – user266973 2010-06-18 11:53:42