BMP Decoding
bedalton opened this issue · 0 comments
bedalton commented
There is a problem with BMP decoding. The padding is calculated as 4 - (bytesPerRow % 4)
. Which means when the width is exactly divisible by 4, you have a padding of 4. This messes up the image considerably.
The check should probably be:if (padding != 4) {
instead of if (padding != 0){