Quartz2D 画线锯齿严重怎么弄 ,请大神帮帮忙

nicookly 2015-01-21 09:32:05
Quartz2D 画线锯齿严重怎么弄 ,请大神帮帮忙
//设置开始点位置

CGContextMoveToPoint(context,tmpPoint.x, tmpPoint.y);
//设置终点
CGContextAddQuadCurveToPoint(context,midPoint.x,midPoint.y,tmpNextPoint.x,tmpNextPoint.y);

CGContextStrokePath(context);




请大神帮帮忙
...全文
180 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
nicookly 2015-01-22
  • 打赏
  • 举报
回复
引用 1 楼 chengxulaoyuan 的回复:
代码的调用有问题吧? //手指移动时候发出 -(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event //当手指离开屏幕时候 -(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event 我的app运行效果:
我的是根据坐标点 然后将两点坐标 进行连接的 CGContextMoveToPoint(context,tmpPoint.x, tmpPoint.y); //设置终点 CGContextAddQuadCurveToPoint(context,midPoint.x,midPoint.y,tmpNextPoint.x,tmpNextPoint.y); CGContextStrokePath(context); 画线的方法 也就是这个
chengxulaoyuan 2015-01-22
  • 打赏
  • 举报
回复
代码的调用有问题吧?

//手指移动时候发出
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event

//当手指离开屏幕时候
-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event

我的app运行效果:

29,041

社区成员

发帖
与我相关
我的任务
社区描述
主要讨论与iOS相关的软件和技术
社区管理员
  • iOS
  • 大熊猫侯佩
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧