Re: Getting CGColor components
Re: Getting CGColor components
- Subject: Re: Getting CGColor components
- From: Andreas Mayer <email@hidden>
- Date: Sun, 12 Jun 2011 17:05:37 +0200
Am 12.06.2011 um 01:12 schrieb Development:
> According to all the examples I have found the following code should give me the RGB components of any UIColor.CGColor I pass to it....
CGColorGetComponents() will only give you RGB components if the color actually *is* a RGB color.
You should check that with CGColorGetColorSpace() beforehand.
Andreas_______________________________________________
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