Re: UIColor vs. NSColor methods

2011-05-29 Thread Kyle Sluder
On Sat, May 28, 2011 at 10:50 PM, Roland King r...@rols.org wrote: You can use CGColorGetComponents on a CGColorRef to get the values of whatever colorspace the CGColorRef is in and you can create new CGColorRefs with those values. I don't see a way to convert from one colorspace to another

Re: UIColor vs. NSColor methods

2011-05-29 Thread Graham Cox
On 29/05/2011, at 3:50 PM, Roland King wrote: You can use CGColorGetComponents on a CGColorRef to get the values of whatever colorspace the CGColorRef is in and you can create new CGColorRefs with those values. I don't see a way to convert from one colorspace to another however a quick

UIColor vs. NSColor methods

2011-05-28 Thread Graham Cox
I'm porting some code to iOS from MacOS for the first time. I find that UIColor is quite impoverished compared to NSColor, but I also don't see a way to do what I need using CGColorRef either. Specifically, I often generate colours from other colours by using the H, S and V values returned by

Re: UIColor vs. NSColor methods

2011-05-28 Thread Roland King
You can use CGColorGetComponents on a CGColorRef to get the values of whatever colorspace the CGColorRef is in and you can create new CGColorRefs with those values. I don't see a way to convert from one colorspace to another however a quick test on one UIColor constructed with HSV values