MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / stbi_write_bmp_core

Function stbi_write_bmp_core

include/stb_image_write.h:358–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358static 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
367STBIWDEF int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data)
368{

Callers 2

stbi_write_bmp_to_funcFunction · 0.85
stbi_write_bmpFunction · 0.85

Calls 1

stbiw__outfileFunction · 0.85

Tested by

no test coverage detected