Skip to content

About

Android StackBlur

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android StackBlur

Android StackBlur is a library that can perform a blurry effect on a Bitmap based on a gradient or radius, and return the result. The library is based on the code of Mario Klingemann.

The library is compatible for Android versions 1.5 (so pretty much compatible with every device).

A library and a sample application are provided with the code.

Example Image Example Image

Acknowledgements

  • Mario Klingemann developed the original algorithm and gave me the idea to port it to Android.
  • Manuel Peinado Gallego has generously pointed me out some other sources working on the same area.

Usage

Download the library with git. When it has been imported into your project. First initialize your StackBlurManager to load a sample image:

_stackBlurManager = new StackBlurManager(getBitmapFromAsset(this, "android_platform_256.png"));

Process using a certain radius with the following line:

_stackBlurManager.process(progress*5);

and finally obtain the image and load it into an ImageView or any other component:

_imageView.setImageBitmap(_stackBlurManager.returnBlurredImage() );

Developed By

Enrique López Mañas - eenriquelopez@gmail.com

Follow me on Twitter Follow me on Google+ Follow me on LinkedIn

About

Android StackBlur

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors