#include <png.h>
void png_write_image(png_structp png_ptr, png_bytepp image);
void png_write_image
Write the rows of given image data. If the image is not interlaced, the image shall be written in a single pass.