Bir CGContext için çizim ve CGImageRef tabanlı maske kullanıyorum: CGContext ile ilişkili kırpma maskesini nasıl sıfırlayabilirim veya temizleyebilirim?
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextClipToMask(context, rect, _firstMaskImageRef);
CGContextSetFillColorWithColor(context, color);
CGContextFillRect(context, rect);
O zamana geçmek istediğiniz ikinci maske:
CGContextClipToMask(context, rect, _secondMaskImageRef);
CGContextSetFillColorWithColor(context, color); // color has changed FWIW
CGContextFillRect(context, rect); // as has rect
Fakat, bu iki kesişen İlk yerine yerine maskeler.
Bir CGContext için kırpma maskesini nasıl temizleyebilir veya sıfırlayabilirsiniz?