xyzxqs / XLowPoly

Lowpoly picture, Sandpainting for Android implemented by JNI, delaunay triangulation algorithm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XLowPoly

Low poly picture, Sandpainting for Android implemented by JNI, delaunay triangulation algorithm.

Screenshots

screenshot screenshot

screenshot screenshot

Including in your project

To add a dependency on xlowpoly using Gradle:

dependencies {
  compile 'io.github.xyzxqs:xlowpoly:1.0.1'
}

or import the module xlowpoly to your project by Android Studio

You can also use these source files to compile cross platform program.

Usage

Bitmap out = LowPoly.sandPainting(Bitmap input, int threshold, float alphaOrPointCount);

Bitmap out = LowPoly.lowPoly(Bitmap input, float alphaOrPointCount, boolean fill); 

License

 Copyright 2016 xyzxqs (xyzxqs@gmail.com)

 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.

About

Lowpoly picture, Sandpainting for Android implemented by JNI, delaunay triangulation algorithm

License:Apache License 2.0


Languages

Language:C 71.4%Language:Java 23.3%Language:CMake 3.5%Language:C++ 1.8%