#include <png.h>
void png_write_chunk(png_structp png_ptr, png_bytep chunk_name, png_bytep data, png_size_t length);
void png_write_chunk
png_write_chunk() writes the start of a PNG chunk, the chunk data and the end of the chunk all at once.