iPhone SDK and Multipage tiff
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 th开发者_StackOverflow中文版e open source libtiff on iphone/xcode.
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];
精彩评论