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