Questions tagged [pset3resize]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
31 views

PSet3 Resize (Less) = Random Colors when not 1:1

I saw others posted about the same phenomena I am experiencing, but none of their solutions were what I needed. n = 1 works perfectly. This is large.bmp with an n = 2. I realize the first line of my ...
0
votes
1answer
43 views

Pset 3 Resize less: Help needed with file size

ive been working on "resize less" for a week now and i've been able to successfully resize images. In addition, the staff header is exactly the same as mine. However when i run check50 i fail all the ...
0
votes
1answer
40 views

bfSize error in check50 PSET3 Resize (less)

The code does what it's suppose to do visually. It resizes the image but it appears that there is an error with the bfSize. I have no idea where the mistake is and have tried everything I can think ...
0
votes
1answer
59 views

Why is my cs50 resize not working?

I have been working on cs50 resize less for 3 weeks on and off and can't seem to get the image to be resized properly. The real problem is I don't know where my program is failing. Can anyone point ...
1
vote
1answer
127 views

What's wrong with my Resize (Less) code? Pset3

I've been stuck with Resize (Less) using the "Rewrite" method for days but just can't seem to figure out what's wrong with my code. My code compiled OK, and has no problem with n=1. But it can't ...
0
votes
1answer
122 views

PSET3 Resize (more comfortable) do not understand why code is not working

I posted my code a few weeks ago, and I have been working on it for a some hours today but I am really stuck as to why it is not working. I have not yet written the code for resizing down. It would be ...
0
votes
1answer
79 views

PSET3 Resize (more comfortable), resizing f > 1 correctly, but pixels are different colors. Does not work when f < 1

**Relevant code is after comment: // iterate over infile's scanlines This code is able to make a new larger bmp with the correct dimensions, but the pixels are not the same color as the original bmp. ...
0
votes
1answer
38 views

pset4 resize: setting bfSize and biSizeImage hexadecimal values

I'm having difficulty setting the bfSize and biSizeImage header values. I should have the correct formulas for both values, however when I write either value to the output file I lose the leftmost ...