When I try my resize program on small.bmp and enter 4 as n, it gives me a 12x12 picture that is all green, but instead of having the white little square in the middle it has a black rectangle on the bottom left corner of the picture.
I am using the re-copy method to print the vertical line. All my headers work as they should, I think, and my padding is calculated correctly. How should I fix this problem, and get it to print correctly?
xxd
to compare a resized bmp by your program against the staff's program see what happens!