jjzjj

transparentPixels

全部标签

iphone - 用颜色填充图像的一部分

我正在做一个iPhone绘画应用程序。我想使用touchevent绘制图像的特定部分以查找像素数据,然后使用该像素数据绘制图像的其余部分。使用touchevent,我得到了该部分的像素值:-(void)touchesBegan:(NSSet*)toucheswithEvent:(UIEvent*)event{UITouch*touch=[touchesanyObject];startPoint=[[touchesanyObject]locationInView:imageView];NSLog(@"thevalueoftheindexis%i",index);NSString*imag