码迷,mamicode.com
首页 >  
搜索关键字:cgcontextref    ( 206个结果
9月22日
1、创建一个drawboard#import "DrawBoard1.h"@implementation DrawBoard1-(void)drawRect:(CGRect)rect{ CGContextRef context=UIGraphicsGetCurrentContext(); CGC.....
分类:其他好文   时间:2014-09-23 01:29:23    阅读次数:360
oc初步画图
- (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); CGContextMoveToPoint(context, 0, 0); CGContextAddRect(c...
分类:其他好文   时间:2014-09-23 00:52:13    阅读次数:223
小日本国旗 计算成绩总分
- (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); //起点移动到(0,0) CGContextMoveToPoint(context, 0, 0); //画线到(100,...
分类:其他好文   时间:2014-09-22 22:22:23    阅读次数:208
CGContextRef画图初体验
这是第一次使用CGContextRef画图,主要UIButton设置圆角,一设置就是四个角都是圆的,目前我还不知道有什么方法,可以单独设置某个角是圆形,其他的角仍然是矩形。我的一个想法是继承UIButton自己画图,来实现。好...
分类:其他好文   时间:2014-09-21 02:56:30    阅读次数:466
Paths中的几个重要元素
Paths中的几个重要元素Pointsvoid CGContextMoveToPoint ( CGContextRef c, CGFloat x, CGFloat y);指定一个点成为current pointQuartz会跟踪current point一般执行完一个相关函数后,current po...
分类:其他好文   时间:2014-09-05 22:20:42    阅读次数:325
圆筒绘画
CGContextRef context=UIGraphicsGetCurrentContext(); CGColorSpaceRef colorSp=CGColorSpaceCreateDeviceRGB(); CGFloat components[]={1.0,0.0,0.0,1.0...
分类:其他好文   时间:2014-09-02 22:51:25    阅读次数:412
简单绘画实现 点、线、面
使用绘画 必须在 -(void)drawRect:(CGRect)rect 中使用例子:- (void)drawRect:(CGRect)rect{ CGContextRef context=UIGraphicsGetCurrentContext(); CGColorSpaceR...
分类:其他好文   时间:2014-09-02 22:36:35    阅读次数:415
Core Graphics 学习笔记 之 Image Drawing(二)
1.绘制箭头的三种方式 // Drawing code // CGContextRef con = UIGraphicsGetCurrentContext(); // //draw a black(by default) vertical line,the shaft of the arrow 箭杆 // CGContextMoveToPoint(con, 100, 10...
分类:Windows程序   时间:2014-08-27 13:01:27    阅读次数:293
IOS用CGContextRef画各种图形(文字、圆、直线、弧线、矩形、扇形、椭圆、三角形、圆角
首先了解一下CGContextRef:An opaque type that represents a Quartz 2D drawing environment.Graphics Context是图形上下文,可以将其理解为一块画布,我们可以在上面进行绘画操作,绘制完成后,将画布放到我们的view中...
分类:移动开发   时间:2014-08-26 17:08:26    阅读次数:499
ios画直线原理
画直线方法1:#pragma mark 画直线-比较简便的画法void drawLineEasy(){ CGContextRef ctx = UIGraphicsGetCurrentContext(); CGContextMoveToPoint(ctx, 0, 0); CGContextAddLin...
分类:移动开发   时间:2014-08-23 19:01:31    阅读次数:230
206条   上一页 1 ... 17 18 19 20 21 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!