Module image_write

Source
Expand description

Image writing to disk: PNG, TGA, BMP A module for writing images to C stdio or a callback.

The PNG output is not optimal; it is 20-50% larger than the file written by a decent optimizing implementation; though providing a custom zlib compress function (see STBIW_ZLIB_COMPRESS) can mitigate that. This library is designed for source code compactness and simplicity, not optimal image file size or run-time performance.

Functionsยง

stbi_write_bmp
stbi_write_bmp_to_func
stbi_write_hdr
stbi_write_hdr_to_func
stbi_write_jpg
stbi_write_jpg_to_func
stbi_write_png
stbi_write_png_to_func
stbi_write_tga
stbi_write_tga_to_func