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 c
:\
I think I have it figured out
All colors work except white and black.
I had to detect those and build the rgb manually
On Jun 11, 2011, at 4:12 PM, Development wrote:
> According to all the examples I have found the following code should give me
> the RGB components of any UIColor.CGColo
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
However I get back a scrambled and often inaccurate array of color values which
turns out to be useless.
CGFloat colors[[widgetArray count]*4];