Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hgayan7/FilterLibrary

Android filter library -This library has 16 filters which can be applied to image bitmaps.
https://github.com/hgayan7/FilterLibrary

android android-application android-filter-library bitmap effects filter image imageprocessing java library photofilter renderscript

Last synced: about 2 months ago
JSON representation

Android filter library -This library has 16 filters which can be applied to image bitmaps.

Awesome Lists containing this project

README

        

[![Generic badge](https://img.shields.io/badge/Himshikhar-Gayan-RED.svg)](https://shields.io/)
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/hgayan7/FilterLibrary/issues)
[![GitHub contributors](https://img.shields.io/github/contributors/Naereen/StrapDown.js.svg)](https://github.com/hgayan7/FilterLibrary/graphs/contributors/)
[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)

# FilterLibrary

Easy to use android image filter library.

[![](https://sourcerer.io/fame/hgayan7/hgayan7/FilterLibrary/images/0)](https://sourcerer.io/fame/hgayan7/hgayan7/FilterLibrary/links/0)[![](https://sourcerer.io/fame/hgayan7/hgayan7/FilterLibrary/images/1)](https://sourcerer.io/fame/hgayan7/hgayan7/FilterLibrary/links/1)[![](https://sourcerer.io/fame/hgayan7/hgayan7/FilterLibrary/images/2)](https://sourcerer.io/fame/hgayan7/hgayan7/FilterLibrary/links/2)[![](https://sourcerer.io/fame/hgayan7/hgayan7/FilterLibrary/images/3)](https://sourcerer.io/fame/hgayan7/hgayan7/FilterLibrary/links/3)[![](https://sourcerer.io/fame/hgayan7/hgayan7/FilterLibrary/images/4)](https://sourcerer.io/fame/hgayan7/hgayan7/FilterLibrary/links/4)[![](https://sourcerer.io/fame/hgayan7/hgayan7/FilterLibrary/images/5)](https://sourcerer.io/fame/hgayan7/hgayan7/FilterLibrary/links/5)[![](https://sourcerer.io/fame/hgayan7/hgayan7/FilterLibrary/images/6)](https://sourcerer.io/fame/hgayan7/hgayan7/FilterLibrary/links/6)[![](https://sourcerer.io/fame/hgayan7/hgayan7/FilterLibrary/images/7)](https://sourcerer.io/fame/hgayan7/hgayan7/FilterLibrary/links/7)

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

Add it in your root build.gradle at the end of repositories:
``` java

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

### Step 2. Add the dependency
``` java

dependencies
{
compile 'com.github.hgayan7:FilterLibrary:0.1.0'
}
```

### Sample code:
``` java

ImageView myImageView1,myImageView2;
Bitmap myBitmap1,myBItmap2;

PhotoFilter photoFilter;

myImageView1 = findViewById(R.id.imageView1);
myBitmap1 = BitmapFactory.decodeResource(getResources(),R.drawable.myImage1);

myImageView2 = findViewById(R.id.imageView2);
myBitmap2 = BitmapFactory.decodeResource(getResources(),R.drawable.myImage2);

photoFilter = new PhotoFilter();

// using filter 'one'
myImageView1.setImageBitmap(photoFilter.one(getApplicationContext(),myBitmap1));

// using filter 'sixteen'
myImageView2.setImageBitmap(photoFilter.sixteen(getApplicationContext(),myBitmap2));

```
## Screenshots :

### Original image :



### Images using filters :










## License

```
Copyright 2019 Himshikhar Gayan

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.
```