mirror of
https://github.com/wasabeef/glide-transformations.git
synced 2025-06-09 16:14:09 +08:00
fix bug
This commit is contained in:
parent
bbb10c5c64
commit
f839029adb
@ -64,10 +64,10 @@ public class SwirlFilterTransformation implements Transformation<Bitmap> {
|
|||||||
gpuImage.setImage(source);
|
gpuImage.setImage(source);
|
||||||
GPUImageSwirlFilter filter = new GPUImageSwirlFilter();
|
GPUImageSwirlFilter filter = new GPUImageSwirlFilter();
|
||||||
if (mRadius != 0) {
|
if (mRadius != 0) {
|
||||||
filter.setAngle(mAngle);
|
filter.setRadius(mRadius);
|
||||||
}
|
}
|
||||||
if (mAngle != 0) {
|
if (mAngle != 0) {
|
||||||
filter.setRadius(mAngle);
|
filter.setAngle(mAngle);
|
||||||
}
|
}
|
||||||
if (mCenter != null) {
|
if (mCenter != null) {
|
||||||
filter.setCenter(mCenter);
|
filter.setCenter(mCenter);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user