You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some headers allow height and width to be negative (for instance BITMAPINFOHEADER) and height is often negative as the pixel array is read bottom up.
As a result, when packing the new header, one should:
Use the absolute value in order to compute file_size,
Interpret them as signed integers for some versions of header