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();
В приведенном выше коде CGContextRef currentContext
создан из UIGraphicsGetCurrentContext ()
и передать его в CGContextBeginPath CGContextAddPath CGContextDrawPath
currentContext имеет параметр для них, он не работает для меня! Когда я делаю touchMovie
.
Когда я передаю напрямую UU ()
вместо currentContext
он работает на меня. Я хочу знать, почему это так?
@All Посоветуйте мне, пожалуйста, по этой проблеме.