A easy and simple library to apply Gaussian blur on images.
Java
Latest commit b391b98 Jan 12, 2017 @jrvansuita committed on GitHub Update README.md
Permalink
Failed to load latest commit information.
.idea Application id updated. Nov 21, 2016
app Application id updated. Nov 21, 2016
gradle/wrapper Initial commit Nov 10, 2016
library Application id updated. Nov 21, 2016
screenshot screens Nov 10, 2016
.gitignore Initial commit Nov 10, 2016
LICENSE.txt licence Nov 18, 2016
README.md Update README.md Jan 12, 2017
build.gradle Initial Nov 10, 2016
gradle.properties Initial commit Nov 10, 2016
gradlew Initial commit Nov 10, 2016
gradlew.bat Initial commit Nov 10, 2016
settings.gradle Initial commit Nov 10, 2016

README.md

Android Arsenal

GaussianBlur

A easy and simple library to apply Gaussian blur on images.

Porpouse

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.

Usage

Step 1. Add the JitPack repository to your build file:

allprojects {
    repositories {
        ...
        maven { url "https://jitpack.io" }
    }
}

Step 2. Add the dependency

dependencies {
        compile 'com.github.jrvansuita:GaussianBlur:v1.0.2'
}

Step 3. Add the below lines on app module build.gradle file.

defaultConfig {
    ...
    renderscriptTargetApi 19
    renderscriptSupportModeEnabled true
}

Samples

You can take a look at the sample app located on this project.

Implementation

//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);

Screenshot

test

License

See the LICENSE. file for license rights and limitations (MIT).