CGContextSaveGState与CGContextRestoreGState的作用
来源:互联网 发布:passport.js 编辑:程序博客网 时间:2024/04/27 21:19
CGContextSaveGState与CGContextRestoreGState的作用
使用Quartz时涉及到一个图形上下文,其中图形上下文中包含一个保存过的图形状态堆栈。在Quartz创建图形上下文时,该堆栈是空的。CGContextSaveGState
函数的作用是将当前图形状态推入堆栈。之后,您对图形状态所做的修改会影响随后的描画操作,但不影响存储在堆栈中的拷贝。在修改完成后,您可以通过CGContextRestoreGState
函数把堆栈顶部的状态弹出,返回到之前的图形状态。这种推入和弹出的方式是回到之前图形状态的快速方法,避免逐个撤消所有的状态修改;这也是将某些状态(比如裁剪路径)恢复到原有设置的唯一方式。
- CGContextSaveGState与CGContextRestoreGState的作用
- CGContextSaveGState与CGContextRestoreGState的作用
- CGContextSaveGState与CGContextRestoreGState的作用
- CGContextSaveGState与CGContextRestoreGState的作用
- iOS CGContextSaveGState与CGContextRestoreGState的作用
- CGContextSaveGState与CGContextRestoreGState的作用 (转)
- CGContextSaveGState与CGContextRestoreGState的功用
- CGContextSaveGState与CGContextRestoreGState详解
- 图形上下文保存与恢复(CGContextSaveGState与CGContextRestoreGState的)
- CGContextRestoreGState() 的作用
- 图形上下文解释CGContextSaveGState/CGContextRestoreGState
- CGContextSaveGState和CGContextRestoreGState UIGraphicsPushContext和UIGraphicsPopCo
- CGContextSaveGState与UIGraphicsPushContext的区别
- CGContextSaveGState与UIGraphicsPushContext的区别
- 【iOS开发-80】Quartz2D绘图简介:直线/圆形/椭圆/方形以及上下文栈管理CGContextSaveGState/CGContextRestoreGState
- Quartz2D绘图简介:直线/圆形/椭圆/方形以及上下文栈管理CGContextSaveGState/CGContextRestoreGState
- CoreGraphics之CGContextSaveGState与UIGraphicsPushContext
- iOS: CGContext的函数CGContextSaveGState
- 谈谈java泛型
- 一条DB2 SQL
- 用cubemap,噪声图,实现水面反影反射
- 四川大学线下编程挑战——数字填充
- Linux Shell编程入门
- CGContextSaveGState与CGContextRestoreGState的作用
- Unable to compile class for JSP(Dynamic Web Project)
- hashmap的hashcode 与equals
- IP协议首部格式与其配套使用的四个协议(ARP,RARP,ICMP,IGMP)
- thinkphp 代码自动生成
- Apache Derby Database
- Linux14.04(64bit) + CUDA6.5 环境搭建
- hdu 2545 树上战争(加权并查集)
- HashMap实现原理分析