mirror of
https://github.com/wasabeef/glide-transformations.git
synced 2025-06-29 04:44:47 +08:00
modify comment
This commit is contained in:
parent
2cc2104802
commit
2a4eb22841
@ -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);
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user