Questions tagged [bmp.h]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer

CS50 pset3 i want to resize this image, code is working for some and not for others? Can anyone tell me whats the problem?

int n = atoi(argv[1]); // read infile's BITMAPFILEHEADER BITMAPFILEHEADER bf,bfR; fread(&bf, sizeof(BITMAPFILEHEADER), 1, inptr); bfR = bf; // read infile's BITMAPINFOHEADER BITMAPINFOHEADER bi,...
user avatar
1 vote
2 answers

in pset4, resize: How does the structs declared in 'bmp.h' know which bytes to get the data from?

I managed to complete the pset4/resize, but am having difficulty understanding the concept behind how it works. That gap is showing up in my attempt at pset4/jpg. fread as far as I know doesn't tell ...
user avatar
0 votes
0 answers

pset4 resize check50 error "expected bmp.h to exist" and it does exist

Check50 can't see my bmp.h file, its there and resize works correctly, any ideas?? I should add, I had a mishap a few days ago where ...
user avatar
2 votes
2 answers

How are file data stored in an int buffer?

For example, in copy.c in pset4, how is 0x42 0x4d(ASCII for 'BM') stored in bfType which is of the type uint16_t? It can't be bfType = 0x424d because that is a completely different number. And of ...
user avatar
  • 151