Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Howto determine color space from an Image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Howto determine color space from an Image



On Oct 12, 2006, at 08:49 AM, Dominik Westner wrote:

I need to do some manual color space translation in case the image is cmyk.

I think what you have should be sufficient then.

My understanding is that if I have an RGB image with an alpha channel (RGBA or ARGB) that CGColorSpaceGetNumberOfComponents will return 4 and not 3. But that was just an assumption.

Recall you can use the same color space with multiple images/bitmaps, some with alpha and some without. If the color space knew about alphas too, then this would require them to modified whenever they are used with an image or bitmap context that used a different alpha variant than the color space knew about. This isn't the case however, all such contexts share the color space directly without modification.
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.


David Duncan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Howto determine color space from an Image (From: Dominik Westner <email@hidden>)
 >Re: Howto determine color space from an Image (From: David Duncan <email@hidden>)
 >Re: Howto determine color space from an Image (From: Dominik Westner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.