public class LowPoly
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static android.graphics.Bitmap |
generate(android.graphics.Bitmap input,
int threshold,
float alphaOrPointCount,
boolean lowPoly,
boolean fill) |
static android.graphics.Bitmap |
lowPoly(android.graphics.Bitmap input,
float alphaOrPointCount,
boolean fill)
generate lowpoly picture
|
static android.graphics.Bitmap |
sandPainting(android.graphics.Bitmap input,
int threshold,
float alphaOrPointCount)
generate sandpainting
|
public static android.graphics.Bitmap lowPoly(android.graphics.Bitmap input,
float alphaOrPointCount,
boolean fill)
input - src BitmapalphaOrPointCount - (0.0, 1) or [1, max)fill - fill ? Paint.Style.FILL : Paint.Style.STROKEpublic static android.graphics.Bitmap sandPainting(android.graphics.Bitmap input,
int threshold,
float alphaOrPointCount)
input - src Bitmapthreshold - recommend(30, 90)alphaOrPointCount - (0.0, 1) or [1, max)public static android.graphics.Bitmap generate(android.graphics.Bitmap input,
int threshold,
float alphaOrPointCount,
boolean lowPoly,
boolean fill)