码迷,mamicode.com
首页 >  
搜索关键字:cgcontext    ( 26个结果
DrawRect
//画贝塞尔曲线 CGContextSetLineWidth(ctx, 3); CGContextMoveToPoint(ctx, 120, 220);//开始的点//CGContextAddQuadCurveToPoint(ctx, 切点X, 切点Y, 结束X, 结束Y); CGContext.....
分类:其他好文   时间:2015-12-21 21:55:07    阅读次数:145
OC画图
1.获取当前的画板CGContextRef context = UIGraphicsGetCurrentContext();2.设置画笔的颜色CGContextSetStrokeColorWithColor(context, [UIColor redColor].CGColor);CGContext...
分类:其他好文   时间:2015-10-23 18:33:40    阅读次数:195
CGContext详解
0 CGContextRef context = UIGraphicsGetCurrentContext(); 设置上下文1 CGContextMoveToPoint 开始画线2 CGContextAddLineToPoint 画直线4 CGContextAddEllipseInRect 画一椭圆4...
分类:其他好文   时间:2015-10-15 18:24:23    阅读次数:185
ios--绘图介绍
iOS–绘图介绍 绘制图像--一. 子类化UIView,在drawRect:方法画图,二. 直接UIGraphicsBeginImageContextWithOptions绘图,三. layer.delegate代理绘制图片 绘图CGContext堆栈介绍...
分类:移动开发   时间:2015-08-09 14:11:33    阅读次数:153
让动画动起来
要学习ios复杂的动画,要用到很多东西,你需要对一下类都有一定的了解。 1 CAyer以及其各个子类。2    CAAnimation以及其子类  3 UIBezierPath 4 CGContext 5 CATransform3D 5 UIView动画 一:绘制静态的图形  这个主要是我们在绘制一些静态的正方形,长方形,五角星或者更复杂的图形的需求 着我们需要用到CALer...
分类:其他好文   时间:2015-08-05 18:21:22    阅读次数:229
利用Quartz2D推图的另一个方法 (使用CGMutalePathRef进行分层次)
可以利用 CGMutablePathRef 创建每个不同图形,然后再一起添加到CGContext中- (void)drawRect:(CGRect)rect{ CGContextRef ctx = UIGraphicsGetCurrentContext(); //一、 画线 ...
分类:Web程序   时间:2015-07-02 20:48:18    阅读次数:151
(转)IOS开发之——绘图(CGContext)
周刊 更多 登录IOS开发之——绘图(CGContext)时间2014-04-21 09:17:43 CSDN博客 原文 http://blog.csdn.net/zhenyu5211314/article/details/24230581 0 CGContextRef context = ...
分类:移动开发   时间:2015-04-08 10:27:16    阅读次数:169
IOS画线的问题
很多控件中希望加一条线, 常见横的竖的, 比如在一个页面的header里, cell中, 像tableview那样那样的分割线. 所以我总结了几种方式供大家参考:    1. 利用CGContext去画, 举个例子: UIImageView *imageView=[[UIImageView alloc] initWithFrame:self.view.frame]; [self....
分类:移动开发   时间:2015-02-27 11:59:02    阅读次数:151
UIBezierPath和CGContext类中的方法
UIBezierPath和CGContext类中的方法详细...
分类:其他好文   时间:2014-12-07 23:15:57    阅读次数:181
UIBezierPath和CGContext类中的方法
UIBezierPath和CGContext类中的方法实现...
分类:其他好文   时间:2014-12-03 15:44:31    阅读次数:204
26条   上一页 1 2 3 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!