Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1.    fseek(bmf, bih.bh.offset, SEEK_SET);
  2.     fwrite(&bih, sizeof bih, 1, bmout);
  3.     colortable ct;
  4.     ct.pixes = arraymake(bih.width, bih.height);
  5.     for(int i = 0; i < bih.height; ++i){
  6.         for(int j = 0; j < bih.width; ++j){
  7.             fread(&ct.pixes[i][j], sizeof(rgb), 1, bmf);
  8.         }
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement