我想知道你們是否有可能在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 –