Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/youxianming/uiimageblur
Add the blur effect to UIImage.
https://github.com/youxianming/uiimageblur
Last synced: about 2 months ago
JSON representation
Add the blur effect to UIImage.
- Host: GitHub
- URL: https://github.com/youxianming/uiimageblur
- Owner: YouXianMing
- Created: 2015-04-09T07:40:40.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-19T02:26:56.000Z (about 9 years ago)
- Last Synced: 2023-02-27T19:11:37.562Z (almost 2 years ago)
- Language: Objective-C
- Homepage:
- Size: 2.25 MB
- Stars: 89
- Watchers: 2
- Forks: 21
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UIImageBlur
> Used to blur UIImage
* Normal Image
![normal图片](/normal.png)
* Half-Blured Image
![half-blur图片](/half-blur.png)
```
// 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图片](/blur.png)
```
// 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];
```