Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 months ago
JSON representation
Android filter library -This library has 16 filters which can be applied to image bitmaps.
- Host: GitHub
- URL: https://github.com/hgayan7/FilterLibrary
- Owner: hgayan7
- License: apache-2.0
- Created: 2017-09-10T11:52:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-01T08:21:19.000Z (about 1 year ago)
- Last Synced: 2024-08-02T20:46:15.716Z (6 months ago)
- Topics: android, android-application, android-filter-library, bitmap, effects, filter, image, imageprocessing, java, library, photofilter, renderscript
- Language: Java
- Homepage:
- Size: 406 KB
- Stars: 40
- Watchers: 2
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- Awesome-Android-Open-Source-Projects - FilterLibrary
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:
``` javaallprojects
{
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 GayanLicensed 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 athttp://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.
```