Home | History | Annotate | Download | only in test

Lines Matching refs:fwrite

33 	fwrite("BM", 2, 1, file);
37 fwrite((const char *)&fileSize, 4, 1, file);
38 fwrite("\0\0\0\0", 4, 1, file); // unused
39 fwrite((const char *)&dataOffset, 4, 1, file);
40 fwrite("\x28\0\0\0", 4, 1, file); // header size from this point
41 fwrite((const char *)&width, 4, 1, file);
42 fwrite((const char *)&height, 4, 1, file);
43 fwrite("\x01\0", 2, 1, file); // 1 color plane
44 fwrite("\x20\0", 2, 1, file); // 32bpp
45 fwrite("\0\0\0\0", 4, 1, file); // BI_RGB no compression
46 fwrite((const char *)&dataSize, 4, 1, file);
47 fwrite("\x13\0\0\0", 4, 1, file); // horz res, 2.835 pixel/meter
48 fwrite("\x13\0\0\0", 4, 1, file); // vert res
49 fwrite("\0\0\0\0", 4, 1, file); // number of colours in palette
50 fwrite("\0\0\0\0", 4, 1, file); // number of important colours, 0 means all are important
55 // fwrite((const char *)&data[(height - y - 1) * width], width * 4, 1, file);
57 //fwrite(data, width * height * 4, 1, file);
67 fwrite(&pixel, sizeof(pixel), 1, file);