1
0
mirror of https://github.com/wasabeef/glide-transformations.git synced 2025-06-08 23:44:04 +08:00

add comment

This commit is contained in:
wasabeef 2015-01-12 18:38:00 +09:00
parent 190c9730e2
commit c94229548a
2 changed files with 8 additions and 0 deletions

View File

@ -27,6 +27,9 @@ import android.graphics.Bitmap;
import jp.co.cyberagent.android.gpuimage.GPUImage;
import jp.co.cyberagent.android.gpuimage.GPUImageContrastFilter;
/**
* contrast value ranges from 0.0 to 4.0, with 1.0 as the normal level
*/
public class ContrastFilterTransformation implements Transformation<Bitmap> {
private Context mContext;

View File

@ -42,6 +42,11 @@ public class SwirlFilterTransformation implements Transformation<Bitmap> {
mBitmapPool = pool;
}
/**
* @param radius from 0.0 to 1.0, default 0.5
* @param angle minimum 0.0, default 1.0
* @param center default (0.5, 0.5)
*/
public SwirlFilterTransformation(Context context, BitmapPool pool,
float radius, float angle, PointF center) {
mContext = context;