Created
May 24, 2016 03:23
-
-
Save kazukitanaka0611/50e7feb46237132d78469ad2c8eb45c7 to your computer and use it in GitHub Desktop.
UIImage+ImageEffects.h
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
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ | |
UIImage *blurredImage = [[UIImage imageNamed:@"ball"] applyBlurWithRadius:1.5 | |
tintColor:nil | |
saturationDeltaFactor:1.0 | |
maskImage:nil]; | |
dispatch_async(dispatch_get_main_queue(), ^{ | |
_ballImageView.image = blurredImage; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment