public class MaskTransformation extends BitmapTransformation
| Constructor and Description |
|---|
MaskTransformation(int maskId) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
key() |
protected android.graphics.Bitmap |
transform(android.content.Context context,
com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool pool,
android.graphics.Bitmap toTransform,
int outWidth,
int outHeight) |
transform, updateDiskCacheKeypublic MaskTransformation(int maskId)
maskId - If you change the mask file, please also rename the mask file, or Glide will get
the cache with the old mask. Because key() return the same values if using the
same make file name. If you have a good idea please tell us, thanks.protected android.graphics.Bitmap transform(@NonNull
android.content.Context context,
@NonNull
com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool pool,
@NonNull
android.graphics.Bitmap toTransform,
int outWidth,
int outHeight)
transform in class BitmapTransformationpublic java.lang.String key()
key in class BitmapTransformation