Merge pull request #344 from albertogasparin/pixelate-alpha-fix

Pixelate filter: correctly handle mixed alpha areas
This commit is contained in:
Anton Lavrenov 2018-02-22 09:51:12 +08:00 committed by GitHub
commit 831512f975
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,6 +80,7 @@
red = red / pixelsInBin;
green = green / pixelsInBin;
blue = blue / pixelsInBin;
alpha = alpha / pixelsInBin;
// Draw this bin
for (x = xBinStart; x < xBinEnd; x += 1) {