Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

inncapsule/StackBluriOS

Open more actions menu
 
 

Repository files navigation

This is a StackBlur implementation for iOS based on the algorithm of:

http://incubator.quasimondo.com/processing/fast_blur_deluxe.php

by Mario Klingemann

To use it, just import the UIImage+StackBlur.h and .m in your project.

Then, to blur an image:

UIImage *newIma=[oldIma stackBlur:radius];

You can also apply the method to a buffer directly if you dont'have access to the full UIImage (see applyStackBlurToBuffer)

The algorithm expect an RGBA format (32 bits/pixel).
If it's not the case, the image will be transformed in a 32 bits/pixel format at each call. You can also use the [UIImage normalize] function of the library to do it once

UIImage *myIma=[[UIImage imageNamed:@"blackWhite.png"] normalized];

...
UIImage *blurIma=[myIm stackBlur:radius];

Radius must be higher than 1 ...

thomas.landspurg@gmail.com


License: New BSD license.

About

Stack Blur implementation for iOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.