Re: [loading 16-bit png,psd|loading tiff from stdout]
Re: [loading 16-bit png,psd|loading tiff from stdout]
- Subject: Re: [loading 16-bit png,psd|loading tiff from stdout]
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 28 Jan 2003 16:34:23 -0800
On Tuesday, January 28, 2003, at 01:19 PM, email@hidden wrote:
On Tuesday, January 28, 2003, at 02:31 PM, Josh Anon wrote:
Problem 2 is that if I have ImageMagick output a TIF, a tif that
opens fine in preview if I dump it to a file, the above code returns
an empty image--cocoa can't make an image rep from the tif.
i believe that preview uses quicktime to read the images and not
NSImage in cocoa. afaik NSImage (or NSBitmapImageRep) doesn't use
quicktime on the backend.
Actually, it does. That's why NSImage can load any image file type
that Quicktime understands. What's probably tripping Josh up is that
NSBitmapImageRep will try to decode *some* image types itself, tiff
being among them.
Josh, what errors are showing up when you try to load the image? Does
the image show up if you try to drag it into an NSImageView in
Interface Builder's "test interface" mode?
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.