草庐IT

mbmpImage

全部标签

iphone - 优化 Quartz2D 在触摸事件上的性能

我正在做的是在每次触摸事件中我从unsignedchar*创建一个图像。这是我的功能-(void)paint:(ImageWarper::WarpedImage*)warpedImgisCircleRequired:(bool)doDrawCircleatPoint:(CGPoint)pt{NSAutoreleasePool*pool=[[NSAutoreleasePoolalloc]init];if(!mWarper)return;unsignedchar*pixelData=warpedImg->Image.Data;intimageHeight=warpedImg->Image.