This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// determine padding for scanlines | |
int old_padding = (4 - (bi.biWidth * sizeof(RGBTRIPLE)) % 4) % 4; | |
float newbiWidth = newbi.biWidth; //make new width a float | |
newbiWidth *= nn; //get downsize number | |
newbiWidth = round(newbiWidth); //round downsize number | |
int inewbiWidth = newbiWidth; | |
int horizontal_pixels = round(bi.biWidth/newbiWidth); |
OlderNewer