M
MrIncognito
Am I using this correctly?
This line of code is supposed to find the number of bytes in one line
of a 16 color bitmap, but it doesn't seem to work most of the time.
long linesize = ceil((double) (header.width / 8)) * 4;
For example, when header.width is 1790, this code returns 892, when it
should be returning 896...
This line of code is supposed to find the number of bytes in one line
of a 16 color bitmap, but it doesn't seem to work most of the time.
long linesize = ceil((double) (header.width / 8)) * 4;
For example, when header.width is 1790, this code returns 892, when it
should be returning 896...