ImageDataUtil.gaussianBlur strength

This commit is contained in:
imcasper
2018-11-13 18:25:00 +02:00
committed by Joshua Granick
parent 263e73922e
commit 37b2eb014b

View File

@@ -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;
}