Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
resize.c, one of the assignments in Problem Set 4, will require you to scale a bitmap image by a certain factor (making it 2, 3, or n times as large).
0
votes
1
answer
59
views
Vertical resizing with fseeks()
I am having a problem with fseek() to move the cursor back for copying line
My code is below:
int old_padding = (4 - (bi.biWidth * sizeof(RGBTRIPLE)) % 4) % 4;
bi.biWidth *= n;
bi.biHeight …
0
votes
1
answer
97
views
Resizing vertically
I am having trouble to make my file resize vertically. … My code is below
for (int i = 0, biHeight = abs(bi.biHeight); i < biHeight; i++)
{
//for each resize factor
for (int b = 0; b < n ; b++)
{
// when b is 0, it means …
0
votes
1
answer
94
views
Changing file header- Invalid or unsupported format
I am having problem with changing file header. Specifically:
BITMAPINFOHEADER new_bi;
fread(&new_bi, sizeof(BITMAPINFOHEADER), 1, inptr);
BITMAPFILEHEADER new_bf;
fread(&new_bf, sizeo …