Using my resize.cresize
on small.bmpsmall.bmp and smiley.mbpsmiley.bmp then with cs50's peekpeek
, I get the exact same values as with the staff's solution for BITMAPFILEHEADERBITMAPFILEHEADER
and BITMAPINFOHEADERBITMAPINFOHEADER
(I tested with different n values).
However, check50 fails my code for resize onprogram fails that check50 tests with a 1x1-pixel bmpBMP when n is 2, 3 and 4 and onwith a 2x2-pixel bmpBMP when n is 2.
I've tried to get a 1x1 and 2x2 pixel bmpBMP files to test my code on, however the files I've manage to get produce the unsupported file format error.
Where can I get 1x1 and 2x2 pixel bmpBMP files?
Note: I'm on a macMac. I've installed PaintbrushPaintbrush and SeashoreSeashore to make these filesBMPs, but they don't seem to be compatible with the resize.c code requirementresize
and I can't figure out how to fix this.