├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── image1.png │ │ │ │ ├── image3.png │ │ │ │ ├── minions.png │ │ │ │ ├── simpsons.jpg │ │ │ │ └── ironmancartoon.jpg │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── styles.xml │ │ │ │ └── dimens.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── layout │ │ │ │ ├── activity_main.xml │ │ │ │ └── activity_frame.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── hackathon │ │ │ │ └── picfix │ │ │ │ ├── data │ │ │ │ ├── SketchType.java │ │ │ │ └── Constants.java │ │ │ │ ├── transform │ │ │ │ ├── RotationEffect.java │ │ │ │ └── FlipImage.java │ │ │ │ ├── utils │ │ │ │ ├── BlurBuilder.java │ │ │ │ └── BitmapBuilder.java │ │ │ │ ├── filters │ │ │ │ ├── Shading.java │ │ │ │ ├── Blur.java │ │ │ │ ├── WaterMark.java │ │ │ │ ├── Saturation.java │ │ │ │ ├── Flea.java │ │ │ │ ├── BlackFilter.java │ │ │ │ ├── Hue.java │ │ │ │ ├── Snow.java │ │ │ │ ├── TintImage.java │ │ │ │ ├── Brightness.java │ │ │ │ └── Sketch.java │ │ │ │ ├── adapter │ │ │ │ └── FrameSelectorAdaptor.java │ │ │ │ ├── interfaces │ │ │ │ ├── CustomFrameInterface.java │ │ │ │ └── PicFixViewInterface.java │ │ │ │ ├── activity │ │ │ │ ├── MainActivity.java │ │ │ │ └── FrameActivity.java │ │ │ │ └── widgets │ │ │ │ └── PicFixImageView.java │ │ └── AndroidManifest.xml │ └── androidTest │ │ └── java │ │ └── com │ │ └── hackathon │ │ └── picfix │ │ └── ApplicationTest.java ├── build.gradle └── proguard-rules.pro ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── README.md ├── gradle.properties ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shilu-stha/PicFix/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shilu-stha/PicFix/HEAD/app/src/main/res/drawable/image1.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/image3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shilu-stha/PicFix/HEAD/app/src/main/res/drawable/image3.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/minions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shilu-stha/PicFix/HEAD/app/src/main/res/drawable/minions.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/simpsons.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shilu-stha/PicFix/HEAD/app/src/main/res/drawable/simpsons.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/ironmancartoon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shilu-stha/PicFix/HEAD/app/src/main/res/drawable/ironmancartoon.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shilu-stha/PicFix/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shilu-stha/PicFix/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shilu-stha/PicFix/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shilu-stha/PicFix/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | PicFix 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #80000000 4 | #FF000000 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Apr 10 15:27:10 PDT 2013 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/hackathon/picfix/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.hackathon.picfix; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/main/java/com/hackathon/picfix/data/SketchType.java: -------------------------------------------------------------------------------- 1 | package com.hackathon.picfix.data; 2 | 3 | /** 4 | * Sketch types which ranges from 3-5. 5 | * 6 | * @author Shilu 7 | * @date 7/4/15 8 | */ 9 | public enum SketchType { 10 | 11 | NEGATIVE(3), 12 | PENCIL_SKETCH(4), 13 | COLOR_PENCIL_SKETCH(5); 14 | 15 | 16 | private final int type; 17 | 18 | SketchType(int type) { 19 | this.type = type; 20 | } 21 | 22 | public int getType() { 23 | return type; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 22 5 | buildToolsVersion "22.0.1" 6 | 7 | defaultConfig { 8 | applicationId "com.hackathon.picfix" 9 | minSdkVersion 17 10 | targetSdkVersion 22 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | compile 'com.android.support:appcompat-v7:22.2.0' 25 | } 26 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | #built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # files for the dex VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # generated files 12 | bin/ 13 | gen/ 14 | 15 | # Local configuration file (sdk path, etc) 16 | local.properties 17 | 18 | # Windows thumbnail db 19 | Thumbs.db 20 | 21 | # OSX files 22 | .DS_Store 23 | 24 | # Eclipse project files 25 | .classpath 26 | .project 27 | 28 | # Android Studio 29 | .idea/ 30 | .gradle/ 31 | *.iml 32 | *.iws 33 | *.ipr 34 | *~ 35 | *.swp 36 | 37 | /*/local.properties 38 | /*/out 39 | 40 | # Built application files 41 | /*/build/ 42 | /*/production 43 | .gradle 44 | /local.properties 45 | /.idea/workspace.xml 46 | /.idea/libraries 47 | /build -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/leapfrog/Android/Sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PicFix 2 | Android Image Editing Library 3 | 4 | PicFix is an android image editing library with simple, easy support for image manipulation. 5 | 6 | # Features 7 | Effects 8 | - Brightness 9 | - Blur Effect 10 | - Flea Effect 11 | - Hue 12 | - Black Filter 13 | - Saturation 14 | - Snow Effect 15 | - Shade Image 16 | - Sketch Image 17 | - Tint Image 18 | 19 | Transforms 20 | - Flip 21 | - Rotate 22 | - Resize 23 | 24 | # Benefits 25 | - Hassle free coding 26 | - Increase efficiency 27 | - Easy image editing 28 | 29 | # Development Configuration: 30 | 31 | Android SDK Tools: 24.3.3 32 | Android SDK Platform-tools: 23 rc3 33 | Android SDK Build-tools: 23 rc2 34 | Android Compatibility: API 17 and above 35 | View Mode: Portrait Mode 36 | 37 | -------------------------------------------------------------------------------- /app/src/main/java/com/hackathon/picfix/data/Constants.java: -------------------------------------------------------------------------------- 1 | package com.hackathon.picfix.data; 2 | 3 | /** 4 | * Constant values used by library 5 | * 6 | * @date 7/3/15 7 | */ 8 | public class Constants { 9 | 10 | public static final int COLOR_MIN = 0x00; 11 | public static final int COLOR_MAX = 0xFF; 12 | 13 | 14 | public static final double PI = 3.14159d; 15 | public static final double FULL_CIRCLE_DEGREE = 360d; 16 | public static final double HALF_CIRCLE_DEGREE = 180d; 17 | public static final double RANGE = 256d; 18 | 19 | public static final boolean mIsError = false; 20 | 21 | // image flip type definition 22 | public static final int FLIP_VERTICAL = 1; 23 | public static final int FLIP_HORIZONTAL = 2; 24 | 25 | // blurr builder definitions 26 | private static final float BLUR_RADIUS = 7.5f; 27 | public static final float BITMAP_SCALE = 0.6f; 28 | } 29 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 10 | 11 |