I'm trying to increase the size vertically. I got the horizontal resize to work, however when i add the follow snippet of code the image produced is random set of dots.

Using this code if I get to the end of a scanline and I need to add another copy of the scanline I'm trying to use fseek to return to the start of that scanline I just read.

   if ((j + 1) % resize == 0) // if i need to print another line
                fseek(inptr, -bi.biWidth - padding, SEEK_CUR);



One obvious problem is that fseek takes arguments (and offsets) in bytes, and biWidth is in pixels...

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .