Demo Address: http://code4app.com/ios/UIImage-Helpers/52c502b6cb7e84a81a8b558c
1. Blurred Picture:
#import "Uiimage+blur.h"
...
JPEG Quality image data
float quality =. 00001f;
Intensity of blurred
float blurred =. 5f;
NSData *imagedata = uiimagejpegrepresentation ([self.imageviewnormal image], quality);
UIImage *blurredimage = [[UIImage imagewithdata:imagedata] blurredimage:blurred];
Self.imageViewBlurred.image = Blurredimage;
2. Screen:
#import "Uiimage+screenshot.h"
...
UIImage *image = [UIImage screenshot];
Self.imageView.image = image;
3. Generate pictures according to color:
#import "Uiimage+imagewithcolor.h"
...
Uicolor *purplecolor = [Uicolor colorwithred:.927f green:.264f blue:.03f alpha:1];
UIImage *image = [UIImage Imagewithcolor:purplecolor];
[Self.navigationbar setbackgroundimage:image Forbarmetrics:uibarmetricsdefault];
Uiimage-helpers screenshot, Frosted glass (blur) and image generation based on color