1 2 3
#include <stable-diffusion.h> int stbi_write_png_custom(char const *filename, int w, int h, int comp, const void *data, int stride_in_bytes);