CGImageRef中的CGPoint

时间:2012-03-08 09:47:45

标签: ios cgpoint cgimageref

我可以知道CGPoint内是否有CGImageRef吗? 或者我应该以其他格式转换CGImageRef

更新

maskcontext = CGBitmapContextCreate(currentM, w, 
                                               h,
                                               bitsPerComponent, bytesPerRow, colorSpace,
                                               kCGImageAlphaNone);
maskImage = CGBitmapContextCreateImage(maskcontext);

其中currentMunsigned charmaskcontextCGContextRef maskImageCGImageRef,我想知道rect

1 个答案:

答案 0 :(得分:2)

你能得到你的形象框架吗?然后你可以这样做:

CGRectContainsPoint ( CGRect rect, CGPoint point )

查看该点是否在该帧内。