美文网首页
CGContextSaveGState和UIGraphicsPu

CGContextSaveGState和UIGraphicsPu

作者: lanmoyingsheng | 来源:发表于2018-07-06 10:53 被阅读12次

一、CGContextSaveGState
保存图形上文的状态,包括颜色、线宽等。
二、UIGraphicsPushContext
官方文档:

Makes the specified graphics context the current context
将[新的]上下文设置为当前上下文。也可以起到保存上下文的功能,不过有CGContextRef产生。

相关文章

网友评论

      本文标题:CGContextSaveGState和UIGraphicsPu

      本文链接:https://www.haomeiwen.com/subject/vfevuftx.html