Re: Multi-Page TIFF routine
Re: Multi-Page TIFF routine
- Subject: Re: Multi-Page TIFF routine
- From: Marcel Weiher <email@hidden>
- Date: Wed, 17 Nov 2004 12:59:27 +0000
That said, NSImage loads TIFF images just fine (I've used that)
Yep.
and NSBitmapImageRep seems to have methods to get at different frames
of an image (look at the NSImageFrameCount constants). I don't know
whether the latter only works with animated GIFs, but I wouldn't be
surprised if it also worked for PDFs and TIFFs (vaguely recall a
posting here from someone who used NSImage to do PDFs...).
Me, I'd go with:
imageRepsWithData:
+ (NSArray *)imageRepsWithData:(NSData *)bitmapData
Creates and returns an array of initialized NSBitmapImageRep objects
corresponding to the images in bitmapData. If NSBitmapImageRep is
unable to interpret bitmapData, the returned array is empty. bitmapData
can contain data in any supported bitmap format.
(For PDFs, use a NSPDFImageRep and setCurrentPage: )
Marcel
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
1d480c25f397c4786386135f8e8938e4
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden