mirror of
https://github.com/wasabeef/glide-transformations.git
synced 2025-10-25 05:29:44 +08:00
format
This commit is contained in:
@@ -55,6 +55,7 @@ public class MaskTransformation implements Transformation<Bitmap> {
|
||||
@Override
|
||||
public Resource<Bitmap> transform(Resource<Bitmap> resource, int outWidth, int outHeight) {
|
||||
Bitmap source = resource.get();
|
||||
|
||||
int width = source.getWidth();
|
||||
int height = source.getHeight();
|
||||
|
||||
@@ -73,9 +74,8 @@ public class MaskTransformation implements Transformation<Bitmap> {
|
||||
return BitmapResource.obtain(result, mBitmapPool);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getId() {
|
||||
return "MaskTransformation(maskId="
|
||||
+ mContext.getResources().getResourceEntryName(mMaskId) + ")";
|
||||
@Override public String getId() {
|
||||
return "MaskTransformation(maskId=" + mContext.getResources().getResourceEntryName(mMaskId)
|
||||
+ ")";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user