From 7a842f54d323b6022a0cd7577c735bc9d466613e Mon Sep 17 00:00:00 2001 From: Varun Verma Date: Thu, 16 Jun 2016 14:12:18 +0530 Subject: [PATCH] Update Readme --- README.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 956a085..c5bfe64 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,18 @@ Bitmap outputImage = fooFilter.process(inputImage); ## Implementation ### Adding Dependency -Include photofiltersdk in your `settings.gradle` like this : + +Simply add Dependency on artifact in your `build.gradle` : + +```gradle +dependencies { + compile 'com.github.zomato:androidphotofilters:1.0.0' + ... +``` + +**OR** + +Copy|Paste photofilterssdk from the repo to your project and include photofiltersdk in your `settings.gradle` like this : ```gradle include ':photofilterssdk' @@ -36,6 +47,9 @@ Add dependency in your `build.gradle` : ```gradle compile project(':photofilterssdk') ``` + +### Usage + Load native library in your activity : ```java @@ -47,7 +61,8 @@ public class MainActivity extends AppCompatActivity { ... ``` -### Usage +then + ```java Filter myFilter = new Filter(); myFilter.addSubFilter(new BrightnessSubFilter(30));