Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. CGContextRef c = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
  2. [self drawInRect:NSRectFromCGRect(dstRect)];
  3. CGContextSetFillColorWithColor(c, [color CGColor]);
  4. CGContextSetBlendMode(c, kCGBlendModeSourceIn);
  5. CGContextFillRect(c, dstRect);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement