Skip to content

YouXianMing/UIImageBlur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UIImageBlur

Used to blur UIImage

  • Normal Image

normal图片

  • Half-Blured Image

half-blur图片

    // get Image
    UIImage *image = [UIImage imageNamed:@"people"];
    
    // init UIImageView
    UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
    imageView.center       = self.view.center;
    [self.view addSubview:imageView];
    
    // blur Image at specified frame
    imageView.image        = [image blurImageAtFrame:CGRectMake(0, 0, image.size.width, image.size.height / 2.f)];

  • Blured Image

blur图片

    // get Image
    UIImage *image = [UIImage imageNamed:@"people"];
    
    // init UIImageView
    UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
    imageView.center       = self.view.center;
    [self.view addSubview:imageView];
    
    // blur Image
    imageView.image = [image blurImage];
    

About

Add the blur effect to UIImage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published