Skip to content

alhazmy13/ImageFilters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Filters


Image Filter is an Android Libary that lets you to Filtering any image. You can report any issue on issues page. Note: If you speak Arabic, you can submit issues with Arabic language and I will check them. :)

Installation


Maven

<dependency>
<groupId>net.alhazmy13.ImageFilters</groupId>
<artifactId>library</artifactId>
<version>0.1.2-beta</version>
</dependency>

Gradle

dependencies {
	compile 'net.alhazmy13.ImageFilters:library:0.1.2-beta'
}

Usage


All you need is to pass a Bitmap obejct and the filter type

       ImageFilter.applyFilter(bitmap, ImageFilter.Filter.GOTHAM);

Filter types

Gray

```java ImageFilter.applyFilter(bitmap, ImageFilter.Filter.GRAY); ```

Relief

ImageFilter.applyFilter(bitmap, ImageFilter.Filter.RELIEF);

Average blur

ImageFilter.applyFilter(bitmap, ImageFilter.Filter.AVERAGE_BLUR,BLUR_SIZE);

OIL

ImageFilter.applyFilter(bitmap, ImageFilter.Filter.OIL);

NEON

ImageFilter.applyFilter(bitmap, ImageFilter.Filter.NEON,COLOR_R,COLOR_G,COLOR_B);

Pixelate

ImageFilter.applyFilter(bitmap, ImageFilter.Filter.PIXELATE,PIXEL_SIZE);

TV

ImageFilter.applyFilter(bitmap, ImageFilter.Filter.TV);

Invert Color

ImageFilter.applyFilter(bitmap, ImageFilter.Filter.INVERT);

Block

ImageFilter.applyFilter(bitmap, ImageFilter.Filter.BLOCK);

Old

ImageFilter.applyFilter(bitmap, ImageFilter.Filter.OLD);

Sharpen

ImageFilter.applyFilter(bitmap, ImageFilter.Filter.SHARPEN);

Light

ImageFilter.applyFilter(bitmap, ImageFilter.Filter.LIGHT,CENTER_X,CENTER_Y,RADIUS);

Lomo

ImageFilter.applyFilter(bitmap, ImageFilter.Filter.LOMO);

HDR

ImageFilter.applyFilter(bitmap, ImageFilter.Filter.HDR);

Gaussian Blur

ImageFilter.applyFilter(bitmap, ImageFilter.Filter.GAUSSIAN_BLUR,SIGMA);

Soft Glow

ImageFilter.applyFilter(bitmap, ImageFilter.Filter.SOFT_GLOW);

Sketch

ImageFilter.applyFilter(bitmap, ImageFilter.Filter.SKETCH);

Motion Blur

ImageFilter.applyFilter(bitmap, ImageFilter.Filter.MOTION_BLUR,X,Y);

Gotham

ImageFilter.applyFilter(bitmap, ImageFilter.Filter.GOTHAM);

Credits

License


Copyright 2015 alhazmy

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.