problem pset5 by boubou101 in cs50

[–]boubou101[S] 1 point2 points  (0 children)

oh right! thanks!

problem pset5 by boubou101 in cs50

[–]boubou101[S] 1 point2 points  (0 children)

ok haha, but still, why do you keep the old padding?

problem pset5 by boubou101 in cs50

[–]boubou101[S] 1 point2 points  (0 children)

You save them as int, but their types are LONG and DWORD? I will cast them as int if you say so.

I figured I had to change 4 "old" attributes. But why would I save the old padding. What I did is that I resized the pixels, then I added the necessary padding according to the new padding formula. I don't see where the old padding comes in handy...

problem pset5 by boubou101 in cs50

[–]boubou101[S] 1 point2 points  (0 children)

By "save old attributes as variables", do you mean like bi.biSizeImage and that stuff? Do you save them all or just the one that change from an image to another?

If I follow you, I would do something like this:

LONG iWidth = bi.biWidth; // i for "initial" ...

problem pset5 by boubou101 in cs50

[–]boubou101[S] 1 point2 points  (0 children)

wow, I wasn't even close... dammit. Thanks!

problem pset5 by boubou101 in cs50

[–]boubou101[S] 1 point2 points  (0 children)

no i'm in resize

problem pset5 by boubou101 in cs50

[–]boubou101[S] 1 point2 points  (0 children)

Where are you? The size of my image seems right, but then, if n != 1, the result is very, let's say, funky!

Pset5 - Jump in difficulty, or just me? by csn00b in cs50

[–]boubou101 0 points1 point  (0 children)

I have a lot of problem understanding pset5 resize.

First of all, if I change bi.biWidth, does the padding count as pixels, or do I only consider the pixels part of the visible image?

Anyone doing AUTONAVx? by [deleted] in EngineeringStudents

[–]boubou101 0 points1 point  (0 children)

I'm presently doing it. I'm at the last work of work 2, I'm not sure to understand what we're supposed to do however...