Stroke a CGContext path using an image in CoreGraphics
问题 Im trying to draw line by stroking an image to have brush like effect via CoreGraphics framework. I followed this post and this post and tried to draw from the touchesMoved method and the code sample'll be of the form UITouch *touch = [touches anyObject]; CGPoint currentPoint = [touch locationInView:self.view]; UIImage *texture = [UIImage imageNamed:@"texture.png"]; CGPoint vector = CGPointMake(currentPoint.x - lastPoint.x, currentPoint.y - lastPoint.y); NSLog(@" vector %@",