Re: Cocoa won't draw CMYK jpeg
Re: Cocoa won't draw CMYK jpeg
- Subject: Re: Cocoa won't draw CMYK jpeg
- From: Scott Thompson <email@hidden>
- Date: Thu, 13 Sep 2007 08:26:39 -0500
On Sep 13, 2007, at 8:18 AM, Robert Clair wrote:
Well, I agree it is simple to read in an image and draw it this way.
What is *not* simple is cramming this into a large app that uses
NSImage in various places to draw, archive, get at its pixels, etc.
What I really want is an NSBitmapImageRep.
Right.. Lots of folks have had to create an "CGImageImageRep" which
is really what you want in this case. Unfortunately Apple hasn't
provided one in Tiger, but there is one in Leopard.
I haven't created one myself, or I would send it to you :-(
* set the profile property for the NSBitmapImageRep... except...
CURSES ! FOILED AGAIN ! There is apparently no way to get the
profile out of CGColorSpaceRef.
A CGColorSpace may not have a profile to give you. For example,
Device color spaces, or those created with
CGColorSpaceCreateCalibratedGray don't have explicit ICC profiles for
you to grab.
_______________________________________________
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