Created
August 23, 2012 19:05
-
-
Save panupan/3440412 to your computer and use it in GitHub Desktop.
NSView post processing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CGContextSetBlendMode([[NSGraphicsContext currentContext] graphicsPort], kCGBlendModeScreen); | |
CGContextSetRGBFillColor ([[NSGraphicsContext currentContext] graphicsPort], 1, 1, 1, .8); | |
CGContextFillRect([[NSGraphicsContext currentContext] graphicsPort], self.backgroundRect); | |
CGContextSetBlendMode([[NSGraphicsContext currentContext] graphicsPort], kCGBlendModeColor); | |
CGContextSetRGBFillColor ([[NSGraphicsContext currentContext] graphicsPort], 1, 1, 1, 1); | |
CGContextFillRect([[NSGraphicsContext currentContext] graphicsPort], self.backgroundRect); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment