LowPoly For Android

Related tags

Utility LowPoly
Overview

LowPoly:A Tool for Generating Low Poly Photo

LowPoly is implemented by JNI, so it's much faster than other in java.

Like this:

screenshot

screenshot

Including in your project

There are two ways:

1.You can import the module lowpoly to your project by Android Studio

2.LowPoly is available in the MavenCentral, so getting it as simple as adding it as a dependency

compile 'com.uniquestudio:lowpoly:1.0.2'

Usage

Bitmap out = LowPoly.generate(Bitmap bitmap, int gradientThresh);

Larger the param gradientThresh is, more abstract the out bitmap is .

Tips

To avoid out of memory,you can resize the input bitmap using BitmapFactory.Options.inSampleSize .

License

 Copyright 2016 CoXier

 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.
Comments
  • couldn't find

    couldn't find "liblowpoly.so"

    java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/zebrostudio.wallr100-1/base.apk"],nativeLibraryDirectories=[/data/app/zebrostudio.wallr100-1/lib/arm64, /data/app/zebrostudio.wallr100-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "liblowpoly.so" at java.lang.Runtime.loadLibrary(Runtime.java:367) at java.lang.System.loadLibrary(System.java:1076) at com.uniquestudio.lowpoly.LowPoly.(LowPoly.java:15)

    opened by abhriyaroy 15
  • Cannot locate symbol

    Cannot locate symbol "srand" referenced by "liblowpoly.so"

    java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "srand" referenced by "liblowpoly.so"...
        at java.lang.Runtime.loadLibrary(Runtime.java:364)
        at java.lang.System.loadLibrary(System.java:526)
        at com.uniquestudio.lowpoly.LowPoly.<clinit>(SourceFile:14)
    
    opened by drakeet 4
  • Add before/After pictures in the Readme

    Add before/After pictures in the Readme

    Hey! Thanks for the excellent library! How about adding a few before/after pictures of the low poly effect created by this library in the Readme? It would definitely give any prospective developers a better idea if this fits their use case or not :)

    opened by AdityaAnand1 1
  • update Manifest

    update Manifest

    delete these lines from Manifest.

    android:allowBackup="true"
    android:label="@string/app_name"
    android:supportsRtl="true"
    

    don't needed.

    opened by anastr 1
  • Polygon edges get jagged.

    Polygon edges get jagged.

    Thanks for this library. It works much faster than any other LowPoly Library and is independent of the size of the image unlike some which crash on varying image sizes. However, there still exists one problem. The edges of the polygon get jagged and are not smooth. These are not visible normally but on zooming are prominent. In my app, I have to keep the Images at high Quality and these jagged edges bring down the image quality. How can this be fixed? Please help.

    opened by abhriyaroy 3
Owner
JianxinLi
Do what I love. Love what I do.
JianxinLi
Android library which makes it easy to handle the different obstacles while calling an API (Web Service) in Android App.

API Calling Flow API Calling Flow is a Android library which can help you to simplify handling different conditions while calling an API (Web Service)

Rohit Surwase 19 Nov 9, 2021
Gesture detector framework for multitouch handling on Android, based on Android's ScaleGestureDetector

Android Gesture Detectors Framework Introduction Since I was amazed Android has a ScaleGestureDetector since API level 8 but (still) no such thing as

null 1.1k Nov 30, 2022
Use Android as Rubber Ducky against another Android device

Use Android as Rubber Ducky against another Android device

null 1.4k Jan 9, 2023
Android Utilities Library build in kotlin Provide user 100 of pre defined method to create advanced native android app.

Android Utilities Library build in kotlin Provide user 100 of pre defined method to create advanced native android app.

Shahid Iqbal 4 Nov 29, 2022
A util for setting status bar style on Android App.

StatusBarUtil A util for setting status bar style on Android App. It can work above API 19(KitKat 4.4). 中文版点我 Sample Download StatusBarUtil-Demo Chang

Jaeger 8.8k Jan 6, 2023
A logger with a small, extensible API which provides utility on top of Android's normal Log class.

This is a logger with a small, extensible API which provides utility on top of Android's normal Log class. I copy this class into all the little apps

Jake Wharton 9.8k Dec 30, 2022
Java implementation of a Disk-based LRU cache which specifically targets Android compatibility.

Disk LRU Cache A cache that uses a bounded amount of space on a filesystem. Each cache entry has a string key and a fixed number of values. Each key m

Jake Wharton 5.7k Dec 31, 2022
a simple cache for android and java

ASimpleCache ASimpleCache 是一个为android制定的 轻量级的 开源缓存框架。轻量到只有一个java文件(由十几个类精简而来)。 1、它可以缓存什么东西? 普通的字符串、JsonObject、JsonArray、Bitmap、Drawable、序列化的java对象,和 b

Michael Yang 3.7k Dec 14, 2022
gRPC and protocol buffers for Android, Kotlin, and Java.

Wire “A man got to have a code!” - Omar Little See the project website for documentation and APIs. As our teams and programs grow, the variety and vol

Square 3.9k Dec 31, 2022
✔️ Secure, simple key-value storage for Android

Hawk 2.0 Secure, simple key-value storage for android Important Note This version has no backward compatibility with Hawk 1+ versions. If you still wa

Orhan Obut 3.9k Dec 20, 2022
A robust native library loader for Android.

ReLinker A robust native library loader for Android. More information can be found in our blog post Min SDK: 9 JavaDoc Overview The Android PackageMan

Keepsafe 2.9k Dec 27, 2022
A lightning fast, transactional, file-based FIFO for Android and Java.

Tape by Square, Inc. Tape is a collection of queue-related classes for Android and Java. QueueFile is a lightning-fast, transactional, file-based FIFO

Square 2.4k Dec 30, 2022
Joda-Time library with Android specialization

joda-time-android This library is a version of Joda-Time built with Android in mind. Why Joda-Time? Android has built-in date and time handling - why

Daniel Lew 2.6k Dec 9, 2022
a SharedPreferences replacement for Android with multiprocess support

DEPRECATED - no longer actively maintained Tray - a SharedPreferences replacement for Android If you have read the documentation of the SharedPreferen

HCI @ gcx 2.3k Nov 17, 2022
OpenKeychain is an OpenPGP implementation for Android.

OpenKeychain (for Android) OpenKeychain is an OpenPGP implementation for Android. For a more detailed description and installation instructions go to

OpenKeychain 1.8k Jan 3, 2023
UPnP/DLNA library for Java and Android

Cling EOL: This project is no longer actively maintained, code may be outdated. If you are interested in maintaining and developing this project, comm

4th Line 1.6k Jan 4, 2023
WebSocket & WAMP in Java for Android and Java 8

Autobahn|Java Client library providing WAMP on Java 8 (Netty) and Android, plus (secure) WebSocket for Android. Autobahn|Java is a subproject of the A

Crossbar.io 1.5k Dec 9, 2022
:iphone: [Android Library] Get device information in a super easy way.

EasyDeviceInfo Android library to get device information in a super easy way. The library is built for simplicity and approachability. It not only eli

Nishant Srivastava 1.7k Dec 22, 2022
Collection of source codes, utilities, templates and snippets for Android development.

Android Templates and Utilities [DEPRECATED] Android Templates and Utilities are deprecated. I started with this project in 2012. Android ecosystem ha

Petr Nohejl 1.1k Nov 30, 2022