This file contains 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
public static UIImage Blur(this UIImage image, float blurRadius = 25f) | |
{ | |
if (image != null) | |
{ | |
// Create a new blurred image. | |
var imageToBlur = new CIImage (image); | |
var blur = new CIGaussianBlur (); | |
blur.Image = imageToBlur; | |
blur.Radius = blurRadius; | |