使用 Core Graphics,我想要绘画应用程序功能,在这里用户可以拥有自定义图像图案绘制功能。我按照以下代码段进行操作:
enter code here
UIGraphicsBeginImageContext(self.view.frame.size);
[drawImage.image drawInRect:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height) blendMode:kCGBlendModeNormal alpha:1.0f];
[T_BImage drawAtPoint:CGPointMake(rotX-(T_BImage.size.width)/2, rotY-(T_BImage.size.height)/2) blendMode:kCGBlendModeNormal alpha:1.0f];
drawImage.image = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); 这里,是输出。但是,当用户在屏幕上连续快速拖动时,图像不会按顺序绘制,而相同的代码在缓慢拖动时可以正常工作
任何帮助将不胜感激。