mirror of
https://github.com/wasabeef/glide-transformations.git
synced 2025-06-09 16:14:09 +08:00
bug fix
This commit is contained in:
parent
1534573e8f
commit
07b7d24e13
@ -43,9 +43,9 @@ public class CropCircleTransformation implements Transformation<Bitmap> {
|
|||||||
int width = (source.getWidth() - size) / 2;
|
int width = (source.getWidth() - size) / 2;
|
||||||
int height = (source.getHeight() - size) / 2;
|
int height = (source.getHeight() - size) / 2;
|
||||||
|
|
||||||
Bitmap bitmap = mBitmapPool.get(width, height, source.getConfig());
|
Bitmap bitmap = mBitmapPool.get(size, size, source.getConfig());
|
||||||
if (bitmap == null) {
|
if (bitmap == null) {
|
||||||
bitmap = Bitmap.createBitmap(width, height, source.getConfig());
|
bitmap = Bitmap.createBitmap(size, size, source.getConfig());
|
||||||
}
|
}
|
||||||
|
|
||||||
Canvas canvas = new Canvas(bitmap);
|
Canvas canvas = new Canvas(bitmap);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user