Skip to main content

Questions tagged [recopy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer

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 ...
alanana's user avatar
  • 13
0 votes
1 answer

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 ...
user avatar
0 votes
1 answer

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 ...
SnowOnACactus's user avatar
0 votes
1 answer

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). ...
Andy O'Neal's user avatar
1 vote
1 answer

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, ...
Emrick Poncet's user avatar
0 votes
1 answer

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 ...
Benedict Florance's user avatar
0 votes
1 answer

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
0 votes
1 answer

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 !...
Roundabout's user avatar