Questions tagged [recopy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
540 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, ...
0
votes
1answer
80 views

resize less comfortable recopy - issues

been on this problem for over a month now. Still cannot resize images as required. When I run code, only the first row is resized. Other pixels return unmatched pixel colours. I would appreciate any ...
0
votes
1answer
73 views

Resize.c (less) writing excess padding

I'm on Pset4's Resize (less comfortable), using the recopy method. When I plug in small.bmp and resize it with a scale factor of 2, I get a black block in the middle. With any higher scale factors, it ...
0
votes
1answer
27 views

Disalignment in the resized photos

I've been stuck on Resize for quite a while now, and I've been perusing the other questions on this site but can't find my problem answered. When I resize the .bmp files given by the class, I can do ...
0
votes
1answer
107 views

pset4 recopy padding issue

I feel like I'm close, since this code will resize small.bmp when the larger file's lines require no padding (for instance, n = 4), but fails with a resize factor that does require padding (1, 3, 7). ...
1
vote
1answer
509 views

pset4 resize recopy method

I am blocking on that problem since 1 week, I think that I am not far from the solution but struggling to implement the recopy method, an hint would be nice here ! /** * Copies a BMP piece by piece, ...
0
votes
1answer
83 views

PSET4(resize-recopy method): Image getting resized but black strips appear in every alternative column. Why?

int initWidth = bi.biWidth; int initHeight = bi.biHeight; int initpadding = (4 - (initWidth * sizeof(RGBTRIPLE)) % 4) % 4; bi.biWidth*=f; bi.biHeight*=f; // determine padding for ...
0
votes
1answer
193 views

pset4 recopy method Question

/** * Copies a BMP piece by piece, just because. */ #include <stdio.h> #include <stdlib.h> #include "bmp.h" int main(int argc, char *argv[]) { // ensure proper usage if (argc !...