Search Results

Search found 1 results on 1 pages for 'qutaibah'.

Page 1/1 | 1 

  • Freehand drawing with Quartz 2D

    - by qutaibah
    I am trying to develop a simple freehand-drawing app for red-marking some of my images. Below is a method that is called from within the drawRect. I want to ask if there is a way to avoid add the path every time the path is redrawn? Also, the way the draw method is set up, the drawing gets a bit slow and choopy after a few seconds. How can I improve the smoothness of the drawn path? thanks -(void)freehandDraw:(CGContextRef)context inRect:(CGRect)rect { CGPathAddLineToPoint( path, NULL, drawTip.x, drawTip.y); CGContextAddPath( context, path); CGContextStrokePath(context); } // method

    Read the article

1