There must be something wrong with my padding or positioning. But I cannot pinpoint which line(s) are causing this. Headers have been confirmed right using the peek function. Related portion of my code is shown below. If anyone can help me out, I would very much appreciate it.
Line 88 shouldn't need
*sizeof(RGBTRIPLE), as you can see in an
xxdoutput below, an image that's 3 pixels x 3 pixels is
3rows tall and
0000036: 00ff00 00ff00 00ff00 000000 ............
0000042: 00ff00 ffffff 00ff00 000000 ............
000004e: 00ff00 00ff00 00ff00 000000 ............
Line 98 will always return true, as your for loop's end condition is j
Line 103 should have
Lines 121 through 125 need to be moved to between line 116 and 117. You need padding on every row. Where you have it now, you are only writing it to every m rows.