public class MaskTransformation
extends java.lang.Object
implements com.bumptech.glide.load.Transformation<android.graphics.Bitmap>
| Constructor and Description |
|---|
MaskTransformation(android.content.Context context,
com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool pool,
int maskId) |
MaskTransformation(android.content.Context context,
int maskId) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId() |
com.bumptech.glide.load.engine.Resource<android.graphics.Bitmap> |
transform(com.bumptech.glide.load.engine.Resource<android.graphics.Bitmap> resource,
int outWidth,
int outHeight) |
public MaskTransformation(android.content.Context context,
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 getId() return the same values if using the
same make file name. If you have a good idea please tell us, thanks.public MaskTransformation(android.content.Context context,
com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool pool,
int maskId)
public com.bumptech.glide.load.engine.Resource<android.graphics.Bitmap> transform(com.bumptech.glide.load.engine.Resource<android.graphics.Bitmap> resource,
int outWidth,
int outHeight)
transform in interface com.bumptech.glide.load.Transformation<android.graphics.Bitmap>public java.lang.String getId()
getId in interface com.bumptech.glide.load.Transformation<android.graphics.Bitmap>