Re: Getting CGColor components

2011-06-12 Thread Andreas Mayer
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

Re: Getting CGColor components

2011-06-11 Thread Development
:\ 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

Getting CGColor components

2011-06-11 Thread 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 However I get back a scrambled and often inaccurate array of color values which turns out to be useless. CGFloat colors[[widgetArray count]*4];