Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CGContextRef c = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
- [self drawInRect:NSRectFromCGRect(dstRect)];
- CGContextSetFillColorWithColor(c, [color CGColor]);
- CGContextSetBlendMode(c, kCGBlendModeSourceIn);
- CGContextFillRect(c, dstRect);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement