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,
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(android.content.Context context,
BitmapPool pool,
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 class BitmapTransformationpublic int hashCode()
hashCode in class BitmapTransformationpublic void updateDiskCacheKey(java.security.MessageDigest messageDigest)
updateDiskCacheKey in class BitmapTransformation