开发者

How can I get color space from a CGContext?

开发者 https://www.devze.com 2022-12-17 04:23 出处:网络
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

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

精彩评论

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