I am having trouble with biHeight from the header info of bmp files. In the file small.bmp, from pset5, that is 3X3 pixels: biHeight has the value fffffffd. I would expect it to be the same as the value of biWidth: 3. Or if the header lines are counted that would be 53 more or some thing of the sort.
So I tested the cs50 implementation of the resize and got the following value of biWidth for a resize of X10: ffffffe2; and for a resize of X2: fffffffa.
Those values converted from hex to decimal are: X1: 4 294 967 293 X2: 4 294 967 290 X10: 4 294 967 266
I just don't get it.
Thanks for any help.