Skip to main content

Timeline for Not sure why resize.c isn't working

Current License: CC BY-SA 3.0

5 events
when toggle format what by license comment
Nov 30, 2014 at 2:58 comment added Brendan Rafferty Also, should you be changing the size of bf.bfsize? I thought that was the size of the header which did not change.
Nov 30, 2014 at 2:53 comment added Brendan Rafferty You use the calculation bi.biSizeImage = (bi.biWidth+newpadding)*(bi.biHeight)*(sizeof(RGBTRIPLE)); I used something like bi.biSizeImage = (bi.biWidth*(sizeof(RGBTRIPLE))+newpadding)*(bi.biHeight); I don't multiply sizeof(RGBTRIPLE) by new padding because newpadding is already in bytes.
Nov 28, 2014 at 21:30 comment added Congor Korsos No, iterate over infile with own values and write out file with new - multiplied values.
Nov 27, 2014 at 14:25 comment added Kim Why? If I iterate over those wouldn't I get the same sized image?
Nov 26, 2014 at 11:31 history answered Congor Korsos CC BY-SA 3.0