mirror of
https://github.com/wasabeef/glide-transformations.git
synced 2025-06-30 21:32:45 +08:00
Use correct field prefix
This commit is contained in:
parent
e69f775ddd
commit
0d7a93c264
@ -32,13 +32,13 @@ import jp.wasabeef.glide.transformations.internal.Utils;
|
|||||||
|
|
||||||
public class MaskTransformation implements Transformation<Bitmap> {
|
public class MaskTransformation implements Transformation<Bitmap> {
|
||||||
|
|
||||||
private static Paint mMaskingPaint = new Paint();
|
private static Paint sMaskingPaint = new Paint();
|
||||||
private Context mContext;
|
private Context mContext;
|
||||||
private BitmapPool mBitmapPool;
|
private BitmapPool mBitmapPool;
|
||||||
private int mMaskId;
|
private int mMaskId;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
mMaskingPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));
|
sMaskingPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -73,7 +73,7 @@ public class MaskTransformation implements Transformation<Bitmap> {
|
|||||||
Canvas canvas = new Canvas(result);
|
Canvas canvas = new Canvas(result);
|
||||||
mask.setBounds(0, 0, width, height);
|
mask.setBounds(0, 0, width, height);
|
||||||
mask.draw(canvas);
|
mask.draw(canvas);
|
||||||
canvas.drawBitmap(source, 0, 0, mMaskingPaint);
|
canvas.drawBitmap(source, 0, 0, sMaskingPaint);
|
||||||
|
|
||||||
return BitmapResource.obtain(result, mBitmapPool);
|
return BitmapResource.obtain(result, mBitmapPool);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user