1 #ifndef _library__png__hpp__included__
2 #define _library__png__hpp__included__
11 * parameter file: Filename to save to.
12 * parameter data24: 3 elements per pixel (r,g, b) per pixel, left-to-right, top-to-bottom order.
13 * parameter width: Width of the image.
14 * parameter height: Height of the image.
15 * throws std::bad_alloc: Not enough memory.
16 * throws std::runtime_error: Error saving PNG.
18 void save_png_data(const std::string
& file
, uint8_t* data24
, uint32_t width
, uint32_t height
) throw(std::bad_alloc
,