我能知道CGPoint是否在CGImageRef中吗?还是我应该将CGImageRef转换成其他格式?
更新
maskcontext = CGBitmapContextCreate(currentM, w,
h,
bitsPerComponent, bytesPerRow, colorSpace,
kCGImageAlphaNone);
maskImage = CGBitmapContextCreateImage(maskcontext);currentM是unsigned char,maskcontext是CGContextRef,maskImage是CGImageRef,我想知道它的rect。
发布于 2012-03-08 09:51:47
你能得到你的图像框架吗?然后你就可以:
CGRectContainsPoint ( CGRect rect, CGPoint point )看看那个点是否在那个框架内。
https://stackoverflow.com/questions/9615604
复制相似问题