开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜