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:
parent
190c9730e2
commit
c94229548a
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user