0

I am currently working on resize (more comfortable).

my code works with check50 for all scale factors greater than and equal to one (meaning to say it will get a perfect on resize less comfortable). However, factors between 0 and 1 somehow should affect the size of the file headers, specifically bf.bfSize.

Conceptually, how does the scale factor affect these BMP header sizes?

My code is here: https://pastebin.com/4BRrcBZS The most important part to focus on is the lines within the rows of '/'

Thanks in advance~

1 Answer 1

0

Not sure what problems you're seeing, but I have a pretty good theory about what's causing the problem.

float f = atol(argv[1]);

The atol() function converts a string into a long int, in other words, an integer! That means that anything less than 1 becomes 0.

Maybe you should consider atof() ? Of course, that's going to present new problems as the code doesn't know how to handle fractional scaling.

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

You must log in to answer this question.

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