public class MaskTransformation extends BitmapTransformation
| Constructor and Description |
|---|
MaskTransformation(int maskId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString() |
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) |
void |
updateDiskCacheKey(java.security.MessageDigest messageDigest) |
transformpublic 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 toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface com.bumptech.glide.load.Keyequals in class BitmapTransformationpublic int hashCode()
hashCode in interface com.bumptech.glide.load.KeyhashCode in class BitmapTransformationpublic void updateDiskCacheKey(@NonNull
java.security.MessageDigest messageDigest)
updateDiskCacheKey in interface com.bumptech.glide.load.KeyupdateDiskCacheKey in class BitmapTransformation