CGContext
来源:互联网 发布:120首网络歌曲黑名单 编辑:程序博客网 时间:2024/05/16 14:48
翻译吐了。。。。。。。。。。。。- (void)test { // ----------------图形状态方法们------------------// // 将上下文copy一份放入上下文栈中 // CGContextSaveGState(<#CGContextRef c#>) // 从上下文栈中取出栈顶的上下文 // CGContextRestoreGState(<#CGContextRef c#>) // ----------------坐标形变信息方法们------------------// // 缩放图形用特定的矩阵几何 // CGContextScaleCTM(<#CGContextRef c#>, <#CGFloat sx#>, <#CGFloat sy#>) // 平移图形 // CGContextTranslateCTM(<#CGContextRef c#>, <#CGFloat tx#>, <#CGFloat ty#>) // 旋转图形 //CGContextRotateCTM(<#CGContextRef c#>, <#CGFloat angle#>) // 合并 // CGContextConcatCTM(<#CGContextRef c#>, <#CGAffineTransform transform#>) // ----------------路径配置方法们------------------// // 开始一个新的路径 // CGContextBeginPath(<#CGContextRef c#>) // 开始一个新的子路径 // CGContextMoveToPoint(<#CGContextRef c#>, <#CGFloat x#>, <#CGFloat y#>) // 追加一个直线 (从当前点到(x,y)) // CGContextAddLineToPoint(<#CGContextRef c#>, <#CGFloat x#>, <#CGFloat y#>) // 追加一个立体约束的 贝塞尔曲线 (从当前点到(x,y)) // CGContextAddCurveToPoint(<#CGContextRef c#>, <#CGFloat cp1x#>, <#CGFloat cp1y#>, <#CGFloat cp2x#>, <#CGFloat cp2y#>, <#CGFloat x#>, <#CGFloat y#>) // 追加一个四边形约束的 贝塞尔曲线 (从当前点到(x,y)) // CGContextAddQuadCurveToPoint(<#CGContextRef c#>, <#CGFloat cpx#>, <#CGFloat cpy#>, <#CGFloat x#>, <#CGFloat y#>) // 添加一个独立的矩形到上下文的路径 // CGContextAddRect(<#CGContextRef c#>, <#CGRect rect#>) // 关闭当前上下文路径的子路径 // CGContextClosePath(<#CGContextRef c#>) // 添加一个矩形的集合到上下文的路径 // CGContextAddRects(<#CGContextRef c#>, <#const CGRect *rects#>, <#size_t count#>) // 添加一个线段的集合到上下文的路径 // CGContextAddLines(<#CGContextRef c#>, <#const CGPoint *points#>, <#size_t count#>) // 添加一个内切于矩形的 椭圆 到当前路径的上下文 // CGContextAddEllipseInRect(<#CGContextRef context#>, <#CGRect rect#>) // 添加一个圆弧到上下文的路径 // CGContextAddArc(<#CGContextRef c#>, <#CGFloat x#>, <#CGFloat y#>, <#CGFloat radius#>, <#CGFloat startAngle#>, <#CGFloat endAngle#>, <#int clockwise#>) // 添加一个被直线约束的圆弧到上下文的路径 // CGContextAddArcToPoint(<#CGContextRef c#>, <#CGFloat x1#>, <#CGFloat y1#>, <#CGFloat x2#>, <#CGFloat y2#>, <#CGFloat radius#>) // 添加路径到上下文,路径中的点在加入到上下文的时候已经被形变完成(通过CTM矩阵) // CGContextAddPath(<#CGContextRef context#>, <#CGPathRef path#>) //--------------------路径信息方法们---------------------// // 判断这个路径有无元素 // CGContextIsPathEmpty(<#CGContextRef context#>) // 获取当前路径的当前点 // CGContextGetPathCurrentPoint(<#CGContextRef context#>) // 获取当前路径的边界框 // CGContextGetPathBoundingBox(<#CGContextRef context#>) // 返回一个复制出来的路径(从路径的上下文中) // CGContextCopyPath(<#CGContextRef context#>) // 判断这个路径是否包含某点 // CGContextPathContainsPoint(<#CGContextRef context#>, <#CGPoint point#>, <#CGPathDrawingMode mode#>) // 用特定的模式 渲染(draw)这个路径 // CGContextDrawPath(<#CGContextRef c#>, <#CGPathDrawingMode mode#>) // 用特定的弯曲数字 填充规则 填充这个路径,认识open的子路径都会被关闭 // CGContextFillPath(<#CGContextRef c#>) // 用特定的奇偶 填充规则 填充这个路径,认识open的子路径都会被关闭 // CGContextEOFillPath(<#CGContextRef c#>) // 渲染这个路径 // CGContextStrokePath(<#CGContextRef c#>) // 用当前的fillColor填充这个矩形 // CGContextFillRect(<#CGContextRef c#>, <#CGRect rect#>) // 用当前的fillColor填充当前矩形集合 // CGContextFillRects(<#CGContextRef c#>, <#const CGRect *rects#>, <#size_t count#>) // 渲染矩形用特定的渲染颜色 // CGContextStrokeRect(<#CGContextRef c#>, <#CGRect rect#>) // 渲染矩形 用当前的 线段宽度 和当前的渲染颜色 // CGContextStrokeRectWithWidth(<#CGContextRef c#>, <#CGRect rect#>, <#CGFloat width#>) // 设置矩形为原始状态 透明色 // CGContextClearRect(<#CGContextRef c#>, <#CGRect rect#>) // 填充矩形内切圆 // CGContextFillEllipseInRect(<#CGContextRef context#>, <#CGRect rect#>) // 渲染矩形内切圆 // CGContextStrokeEllipseInRect(<#CGContextRef context#>, <#CGRect rect#>)}
0 0
- CGContext
- CGContext
- CGContext
- CGContext
- CGContext
- CGContext小记
- CGContext小记
- CGContext小记
- CGContext小记
- CGContext小记
- CGContext 用法
- CGContext小记
- CGContext总结
- CGContext小记
- CGContext绘图
- CGContext小记
- CGContext学习
- CGContext小记
- ObjectiveC开发教程--如何判断字符串是否为空的方法
- ZOJ 3203 Light Bulb
- CSS 最核心的几个概念
- 配置双数据源
- jsp页面放到WEB-INF 跟webroot的区别
- CGContext
- Android中屏幕密度和图片大小的关系
- 第一周 项目一C/C++语言中函数参数传递的三种方式
- 第2周项目0 宣告“主权”
- 初探ASP.NET Mvc5+EF7的美妙旅程
- error C2440: “初始化”: 无法从“const char *”转换为“ATL::CStringT<BaseType,StringTraits>”
- 0xc000007b错误
- Mac下批量转mp3到opus
- Linux下yum安装mysql