我想知道你们是否有可能在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();
感谢欧提前:)非常
你有没有“粗略”是什么意思的例子?因错误链接而编辑 – oltman
。不知道如何删除它 –
不完全是这样,但类似的东西[链接] http://www.boxesandarrows.com/files/banda/sketchy-wireframes/4_Travis_Search_Line_Conversion.gif –