Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想创建一个CGContext与现有CGContext. 我怎样才能得到UIColora 的空间CGContext?
CGContext
UIColor
您需要调用CGBitmapContextGetColorSpace以获取给定位图上下文的颜色空间, 但如果您谈论的是一般上下文,那么问题就没有很好地定义,因为 CGContexts 有两个颜色空间:描边和填充。
CGBitmapContextGetColorSpace