A easy and simple library to apply Gaussian blur on images.
This class lets you apply a fast Gaussian Blur on any images. A larger image will be scaled down to take menus time to apply the filter. You can also do it asynchronous or synchronous.
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
dependencies {
compile 'com.github.jrvansuita:GaussianBlur:v1.0.1'
}
You can take a look at the sample app located on this project.
//Synchronous
Bitmap blurredBitmap = GaussianBlur.with(context).radius(25).noScaleDown(true).render(R.mipmap.your_image);
imageView.setImageBitmap(blurredBitmap);
//Synchronous - Only scaleDown
Bitmap scaledDownBitmap = GaussianBlur.with(context).maxSixe(50).scaleDown(R.mipmap.your_image);
imageView.setImageBitmap(scaledDownBitmap);
//Asynchronous
GaussianBlur.with(context).maxSixe(400).radius(25).put(R.mipmap.your_image, imageView);