Skip to main content

Questions tagged [vertical-resizing]

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

Resize Less - failing to resize small.bmp

Hi guys I've scratched my head about this for a week now and I'm struggling to see what the issue is. The smiley.bmp file seems to be resizing correctly but not the others. Can anyone offer some ...
GFitzP's user avatar
  • 19
1 vote
0 answers
27 views

What's wrong with saving the scanline array elements in my code for resize (less), Pset3 problem?

I've solved the problem by recopy method successfully and thanks to many helpful answers to others' questions. Now I'm trying to solve be rewrite method and I think I have a problem with storing ...
S. Sabry's user avatar
0 votes
1 answer
24 views

PSET4 Invalid File Format when going from n = 1 to n = 2

// Copies a BMP file #include <stdio.h> #include <stdlib.h> #include "bmp.h" int main(int argc, char *argv[]) { // ensure proper usage if (argc != 4) { fprintf(stderr, "Please give ...
Ryan's user avatar
  • 11
0 votes
1 answer
74 views

pset4 resize(less) vertical

My code seems only work for horizontal but not vertical. I have tried different for loops but nothing works. Any suggestions would be extremely helpful. Thank you. // Copies a BMP file #include <...
Issa's user avatar
  • 27
0 votes
1 answer
155 views

PSET 4 (Resize)-- Vertical Scaling

I'm having trouble with the vertical scaling. I've reviewed my code and it seems like it should scale correctly, but instead I get the following picture. My pseudocode for vertically scaling goes as ...
Daniel-G's user avatar
0 votes
1 answer
81 views

CS50 Pset4 Resize - Vertical Sizing

I have no problems with the horizontal resizing but can't identify what is the problem in my code with the vertical resizing. Any help would be much appreciated. /** * Copies a BMP piece by piece, ...
Prav Elan's user avatar
0 votes
1 answer
542 views

pset4 - resize: Scaling vertically?

I have the dimensions of the image right, and I have the horizontal scaling working, but I can't figure out how to get the vertical pixels to scale correctly. I've watched the walkthrough repeatedly, ...
Lea Miller's user avatar
1 vote
1 answer
428 views

Pset4 Resize.c Array Overstepping

I have been stuck on resize for a while. I am currently struggling on the vertical portion of resize. I am using the "rewrite" method as explained in the problem spec. My program does resize an image ...
Jason_V's user avatar
  • 182
0 votes
1 answer
93 views

Pset 4 resize: unable to get it to resize

My headers get updated accurately. My image of small.bmp gets enlarged but the inside white box does not gets scaled vertically;Need help with debugging this. Not able to understand the fault in my ...
rasdocus's user avatar
0 votes
1 answer
143 views

Problems with vertical resize Pset4

I'm having problems with my vertical re-size in Pset4. I've got the horizontal re-size working - go me! But I'm having problems with the vertical re-size. I'm trying to implement a version of what ...
Matt Friend's user avatar
0 votes
1 answer
303 views

pset4 resize.c fseek problem

I have a problem with vertical resizing that's been driving me crazy for weeks. When I run ./resize 4 smiley.bmp x.bmp I get this: When I debug the program, the variables increase as they should, but ...
Daniil Ganco's user avatar
0 votes
1 answer
291 views

Not able to get the correct enlarged image in resize

It is able to resize horizontally and vertically but i am not getting the correct enlarged image. include include include "bmp.h" int main(int argc, char* argv[]) { // ensure proper usage ...
Himanshu Jhamb's user avatar
0 votes
1 answer
181 views

pset4 resize cannot figure out what's wrong

Ok I've been working on this for hours and I'm baffled. The header file all matches the staff implementation having checked it through peek. But when I run resize 4 on small.bmp I get this: So that ...
MelJ79's user avatar
  • 9
0 votes
1 answer
129 views

PSET 4 Resize: Printing extra scanlines

So I can manage to print the scanlines just fine widened w/padding... just cant for the life of me figure out how to repeat that line again. If the position indicator stops after the padding is ...
Michael's user avatar
  • 23
0 votes
1 answer
206 views

Pset4 - resize : stuck in resizing vertically (Yes, i have read other q&a regarding this topic, but still can't figure out the solution)

I don't understand why my code doesn't work the way i expected it, i believe my mistake is in understanding fseek. please help me with some advice int scanline = 0; int horiz = 0; for(int i = 0, ...
Patrick Benz Imanuel's user avatar
1 vote
2 answers
133 views

Yet again, problem with padding

I am having a problem with my code, and I think it has to do with the use of fseek. I have read a lot of the articles on the cs50 Stack Exchange, and tweaked my code a lot, but my problem still ...
Gregory Martin's user avatar
0 votes
1 answer
82 views

Resize only works when n % 4 = 0, when n = 1 or when i resize a 2x2-pixel BMP and n =2

I don't know exactly where is the problem. Resize gives me a bunch of different colors when n % 4 !=0. Can you guys help me understand what I'm doing wrong? // iterate over infile's scanlines { //...
Paulo Loyola's user avatar
0 votes
2 answers
787 views

resize vertically doesn't work

First of all I know there are a lot of other questions like this but I have looked at all of them. They have helped a lot but I am still stuck. I can't see anything logically wrong with my code, but ...
Sofia's user avatar
  • 25
0 votes
1 answer
397 views

How does the "re-copy method" work?

So, in Zamyla's walkthrough, she says that for the "Re-Copy" method of vertical resizing, you have to go back to the start of the original row, and then repeat the horizontal resizing. I don't ...
a7464270's user avatar
0 votes
1 answer
2k views

How to Resize an Image Vertically?

I'm able to resize a given .bmp horizontally, but the code for vertical resizing is not working. Here is my code for vertical expansion. // resize vertically //move pointer to start of scanline of ...
sid's user avatar
  • 15