Can I know if a CGPoint
is inside a CGImageRef
?
Or I should convert CGImageRef
in other format?
UPDATE
maskcontext = CGBitmapContextCreate(currentM, w,
h,
bitsPerComponent, bytesPerRow, colorSpace,
kCGImageAlphaNone);
maskImage = CGBitmapContextCreateImage(maskcontext);
where currentM
is an unsigned char
, maskcontext
is a CGContextRef
and maskImage
is a CGImageRef
and I want to know its rect
.