CGContextRef currentContext = UIGraphicsGetCurrentContext();
UIGraphicsBeginImageContext(drawImage.frame.size);
[drawImage.image drawInRect:CGRectMake(0,0, drawImage.frame.size.width, drawImage.frame.size.height)];
CGContextSetRGBStrokeColor(currentContext, 0.0, 0.0, 0.0, 1.0);
UIBezierPath *path=[self pathFromPoint:currentPoint
toPoint:currentPoint];
CGContextBeginPath(currentContext);
CGContextAddPath(currentContext, path.CGPath);
CGContextDrawPath(currentContext, kCGPathFill);
drawImage.image = UIGraphicsGetImageFromCurrentImageContext();
In the above code CGContextRef currentContext
created of UIGraphicsGetCurrentContext()
and pass it to CGContextBeginPath CGContextAddPath CGContextDrawPath
currentContext has parameter to them its not working for me! When i am doing touchMovie
.
When i pass directly UIGraphicsGetCurrentContext()
in place of currentContext
its working for me. I want to know why its like that?
@All Please Advice me for this issue.