Package com.cheetahdigital.uikit.widget
Class CropCircleTransformation
- java.lang.Object
-
- com.bumptech.glide.load.resource.bitmap.BitmapTransformation
-
- com.cheetahdigital.uikit.widget.CropCircleTransformation
-
- All Implemented Interfaces:
com.bumptech.glide.load.Key
,com.bumptech.glide.load.Transformation<android.graphics.Bitmap>
public class CropCircleTransformation extends com.bumptech.glide.load.resource.bitmap.BitmapTransformation
Class that crops bitmap into a circular shape.
-
-
Constructor Summary
Constructors Constructor Description CropCircleTransformation(com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool pool)
Constructor forCropCircleTransformation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected android.graphics.Bitmap
transform(com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool pool, android.graphics.Bitmap toTransform, int outWidth, int outHeight)
void
updateDiskCacheKey(java.security.MessageDigest messageDigest)
-
-
-
Constructor Detail
-
CropCircleTransformation
public CropCircleTransformation(com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool pool)
Constructor forCropCircleTransformation
- Parameters:
pool
- the bitmap pool
-
-
Method Detail
-
transform
protected android.graphics.Bitmap transform(@NonNull com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool pool, @NonNull android.graphics.Bitmap toTransform, int outWidth, int outHeight)
- Specified by:
transform
in classcom.bumptech.glide.load.resource.bitmap.BitmapTransformation
-
updateDiskCacheKey
public void updateDiskCacheKey(java.security.MessageDigest messageDigest)
-
-