Skip to content

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

Notifications You must be signed in to change notification settings

contribute1986/GaussianBlur

 
 

Repository files navigation

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.1'
}

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%