加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

objective-c – 以编程方式绘制粗略的线条

发布时间:2020-12-16 06:57:03 所属栏目:百科 来源:网络整理
导读:我想知道你们是否知道如何在iOS应用程序上绘制粗略的线条. 目前我正在绘制一个UIBezierPath,然后我将其呈现为位图图形上下文.我怎么能让线看起来粗略? // Produce and add points to draw in the UIBezierPath// Draw the path into the Bitmap contextUIGr
我想知道你们是否知道如何在iOS应用程序上绘制粗略的线条.
目前我正在绘制一个UIBezierPath,然后我将其呈现为位图图形上下文.我怎么能让线看起来粗略?

// Produce and add points to draw in the UIBezierPath

// Draw the path into the Bitmap context

UIGraphicsBeginImageContext(self.bounds.size);  
        [frameBuffer drawAtPoint:CGPointMake(0,0) blendMode:kCGBlendModeCopy alpha:1.0];
        [[datasource lineStrokeColorForSketchCanvas:self] setStroke];
        [curvePath stroke];    
image = UIGraphicsGetImageFromCurrentImageContext();    
    UIGraphicsEndImageContext();

非常感谢ou

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读