一、CGContextSaveGState
保存图形上文的状态,包括颜色、线宽等。
二、UIGraphicsPushContext
官方文档:
Makes the specified graphics context the current context
将[新的]上下文设置为当前上下文。也可以起到保存上下文的功能,不过有CGContextRef产生。
一、CGContextSaveGState
保存图形上文的状态,包括颜色、线宽等。
二、UIGraphicsPushContext
官方文档:
Makes the specified graphics context the current context
将[新的]上下文设置为当前上下文。也可以起到保存上下文的功能,不过有CGContextRef产生。
本文标题:CGContextSaveGState和UIGraphicsPu
本文链接:https://www.haomeiwen.com/subject/vfevuftx.html
网友评论