Fix BMP format encode

This commit is contained in:
Joshua Granick
2018-09-07 13:18:17 -07:00
parent 083be8a3af
commit 4adb7d638d

View File

@@ -49,7 +49,7 @@ class BMP {
case RGB:
pixelValuesLength = (image.width * 3) + ((image.width * 3) % 4) + (image.height * 3) + (image.height * 3);
pixelValuesLength = ((image.width * 3) + ((image.width * 3) % 4)) * image.height;
default: