• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multi-Page TIFF routine
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • RE: Multi-Page TIFF routine
      • From: klee04 <email@hidden>
References: 
 >Re: Multi-Page TIFF routine (From: Rustam Muginov <email@hidden>)
 >Re: Multi-Page TIFF routine (From: "M. Uli Kusterer" <email@hidden>)

  • Prev by Date: Re: the image not the icon
  • Next by Date: Re: Application fails to come to front / show menu bar in Xcode
  • Previous by thread: Re: Multi-Page TIFF routine
  • Next by thread: RE: Multi-Page TIFF routine
  • Index(es):
    • Date
    • Thread