Questions tagged [bmp.h]

The tag has no usage guidance.

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

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,...
1
vote
2answers
161 views

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 ...
0
votes
0answers
200 views

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?? https://sandbox.cs50.net/checks/b5be44d692954fb98c07d29961fa76a7 I should add, I had a mishap a few days ago where ...
2
votes
2answers
483 views

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 ...