iPhone SDK和多页tiff [英] iPhone SDK and Multipage tiff

查看:60
本文介绍了iPhone SDK和多页tiff的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要访问iphone API来读取多页TIFF图像文件格式,任何人都应该知道如何做:如果没有,我该如何在iphone/xcode上构建和使用开源libtiff.

I need to access the iphone APIs to read a multipage TIFF image file format, dose anyone know how:, if not how can I build and use the open source libtiff on iphone/xcode.

推荐答案

我为此创建了自己的解决方案: NSTiffSplitter . 您可以在 github 上找到它.

I've created my own solution for this: NSTiffSplitter. You can find it on github.

NSString *pathToImage = [[NSBundle mainBundle] pathForResource:@"Example" ofType:@"tiff"];
NSTiffSplitter* splitter = [[NSTiffSplitter alloc] initWithPathToImage:pathToImage];
UIImage *page = [[UIImage alloc] initWithData:[splitter dataForImage:page]];
yourImageView.image = page;
[page release];

这篇关于iPhone SDK和多页tiff的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆