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
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
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
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