| 356 | } |
| 357 | |
| 358 | static int stbi_write_bmp_core(stbi__write_context *s, int x, int y, int comp, const void *data) |
| 359 | { |
| 360 | int pad = (-x*3) & 3; |
| 361 | return stbiw__outfile(s,-1,-1,x,y,comp,1,(void *) data,0,pad, |
| 362 | "11 4 22 4" "4 44 22 444444", |
| 363 | 'B', 'M', 14+40+(x*3+pad)*y, 0,0, 14+40, // file header |
| 364 | 40, x,y, 1,24, 0,0,0,0,0,0); // bitmap header |
| 365 | } |
| 366 | |
| 367 | STBIWDEF int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data) |
| 368 | { |
no test coverage detected