Skip to main content

Questions tagged [padding]

The tag has no usage guidance.

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
0 answers
209 views

pset5: Resize does not consistently work

I am having a problem with resize. I can resize smiley.bmp perfectly at X1, X2, and X10, but not for factors between 2 and 10--I just get an abstract blob of colors. I assume this has something to do ...
PaulJ's user avatar
  • 11
1 vote
1 answer
513 views

adding padding into resize

I know my paddingOld & paddingNew values are correct. I also know all my header info is correct (checked student vs staff) check 50 passes the cases that do not need padding, but fails the ones ...
aharris's user avatar
  • 19
0 votes
1 answer
75 views

Pset4 - Resize problem with vertical scaling

int main(int argc, char *argv[]) { // ensure proper usage if (argc != 4) { fprintf(stderr, "Usage: ./copy infile outfile\n"); return 1; } // remember filenames int n = ...
Onur's user avatar
  • 1
0 votes
1 answer
118 views

bfSize different colors resize pset4

I just cannot stop getting funky different colors when I resize, and I see it must be some padding issue. I used the specs and peek to compare my file student.bmp with the staff.bmp. It shows in red ...
Marie Urbina's user avatar
0 votes
2 answers
137 views

pset4 Resize - black bars of padding?(not sure how to get rid of them)

First time on this so be gentle. I have been at a standstill on this for hours. Below is my code and I can't seem to find out why these black bars(padding)show up. Any help? #include <stdio.h> #...
R1234's user avatar
  • 1
0 votes
1 answer
118 views

pset 4, resize.c is not working

Here is the code for resize.c I am stuck for quite some time now and i am not able to figure out where i am wrong. please help. bi.biHeight = height*n; bi.biWidth = width*n; // determine new padding ...
Kishore Vasan's user avatar
0 votes
0 answers
321 views

PSET4 Resize Works for Smiley but not Small

Hi I can get Resize to work fine for Smiley for all sizes, but I can't get ANY sizes to work for Small. Please help! I think the problem has to do with the padding, but not sure why it would work ...
FEA's user avatar
  • 1
0 votes
1 answer
664 views

Not sure why resize.c isn't working

resize.c compiles and runs, but produces an image with a lot of black space. A fresh set of eyes on my code is welcome to see where I have gone wrong. I assume it has to do with padding but I can't ...
Kim's user avatar
  • 137