1
0
mirror of https://github.com/wasabeef/glide-transformations.git synced 2025-06-28 20:35:54 +08:00

modify comment

This commit is contained in:
wasabeef 2015-09-06 17:19:27 +09:00
parent 2cc2104802
commit 2a4eb22841
2 changed files with 2 additions and 7 deletions

View File

@ -58,6 +58,7 @@ public class CropCircleTransformation implements Transformation<Bitmap> {
BitmapShader shader =
new BitmapShader(source, BitmapShader.TileMode.CLAMP, BitmapShader.TileMode.CLAMP);
if (width != 0 || height != 0) {
// source isn't square, move viewport to center
Matrix matrix = new Matrix();
matrix.setTranslate(-width, -height);
shader.setLocalMatrix(matrix);

View File

@ -27,13 +27,7 @@ import jp.co.cyberagent.android.gpuimage.GPUImage;
import jp.co.cyberagent.android.gpuimage.GPUImageKuwaharaFilter;
/**
* Kuwahara image abstraction, drawn from the work of Kyprianidis, et. al. in their publication
* "Anisotropic Kuwahara Filtering on the GPU" within the GPU Pro collection. This produces an
* oil-painting-like
* image, but it is extremely computationally expensive, so it can take seconds to render a frame
* on
* an iPad 2.
* This might be best used for still images.
* Kuwahara all the colors in the image.
*
* The radius to sample from when creating the brush-stroke effect, with a default of 25.
* The larger the radius, the slower the filter.