CGContextRef 笔记--Geometry
CGContextRef 是什么东西???
CGContextRef 是用来进来路径相关的绘图。
Core Animation 为 UIKit提供了底层的环境, UIkit 为 Quartz的 Object-c 方法进行了封装,
获得CGContextRef 的方法
CGContextRef ctx = UIGraphicsGetCurrentContext();
设置画笔
CGContextSetLineWidth( CGContextRef * ctx, CGFloat width);
CGContextSetRGBstrokeColor(CGContextRef * ctx, red, green, blue, alpha);
画线段
CGContextsetLineSegments();