ImageDataUtil.gaussianBlur strength
This commit is contained in:
@@ -783,6 +783,7 @@ class ImageDataUtil {
|
||||
|
||||
var x: Int;
|
||||
var y: Int;
|
||||
if (strength > 1) {
|
||||
if (offset <= 0) {
|
||||
y = 0;
|
||||
while (y < h) {
|
||||
@@ -804,6 +805,7 @@ class ImageDataUtil {
|
||||
y -= 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
image.dirty = true;
|
||||
image.version++;
|
||||
@@ -813,8 +815,7 @@ class ImageDataUtil {
|
||||
if (imagePremultiplied) image.premultiplied = true;
|
||||
if (sourceImagePremultiplied) sourceImage.premultiplied = true;
|
||||
|
||||
if (imgA == sourceImage.data) return sourceImage;
|
||||
return image;
|
||||
return sourceImage;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user