I have created a UIColor object and want to set the color before using CGContextSetRGBStrokeColor. To do this, I need to remove the red, green and blue values from the UIColor object. How do I do that?
Or maybe using any other method is a better way of defining color (when I saw it for this), in which I can use the UIColor object to set the color ?
Thank you in advance!
/ nickles
You do not need RGB components in your case. Simply use CGContextSetRGBStrokeColor instead.
CGContextSetStrokeColorWithColor (references, thatUIColor.CGColor); (To get RGB components, see.)
Comments
Post a Comment