How can I get color space from a CGContext?
I want to create a bitmap CGContext
with the same color space as an existing CGContext
.
How can I get开发者_C百科 the UIColor
space of a CGContext
?
You need to call CGBitmapContextGetColorSpace
to get the colour space of a given bitmap context,
but if you're talking about a general context then the question isn't well defined because CGContexts have two colour spaces: stroke and fill.
精彩评论