Могу ли я узнать, находится ли CGPoint
внутри CGImageRef
?
Или мне надо конвертировать CGImageRef
в другой формат?
UPDATE
maskcontext = CGBitmapContextCreate(currentM, w,
h,
bitsPerComponent, bytesPerRow, colorSpace,
kCGImageAlphaNone);
maskImage = CGBitmapContextCreateImage(maskcontext);
, где currentM
- это unsigned char
, maskcontext
- это CGContextRef
и maskImage
является CGImageRef
, и я хочу знать его rect
.