Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fseek(bmf, bih.bh.offset, SEEK_SET);
- fwrite(&bih, sizeof bih, 1, bmout);
- colortable ct;
- ct.pixes = arraymake(bih.width, bih.height);
- for(int i = 0; i < bih.height; ++i){
- for(int j = 0; j < bih.width; ++j){
- fread(&ct.pixes[i][j], sizeof(rgb), 1, bmf);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement