Re: Cocoa won't draw CMYK jpeg
Re: Cocoa won't draw CMYK jpeg
- Subject: Re: Cocoa won't draw CMYK jpeg
- From: glenn andreas <email@hidden>
- Date: Wed, 12 Sep 2007 09:42:37 -0500
On Sep 12, 2007, at 9:33 AM, Robert Clair wrote:
I just downloaded the ImageIO sample app and the image opens
correctly.
Sigh. Yet one more part of the app to re-write.
....Bob
I'm assuming that you're just using a standard NSImage in your
existing code to load and display these images, but you could just
create your own NSImageRep subclass that encapsulates ImageIO and
then there will be no "re-writing" required (since all the places
that use NSImage will magically get support for using ImageIO via
your NSImageRep subclass).
If you search the web, there's a sample that show how to make an
NSImageRep subclass that supports HTML files (allowing you to open
web pages as if they were image files) - it's relatively simple to do
(and sure beats having to rewrite all the places that your app uses
NSImage to use ImageIO)
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures,
fractals, art
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden