Similar to int cp_save_png(const char* file_name, const cp_image_t* img); it would be nice to have a
void * cp_save_png_to_mem(const cp_image_t* img, int * outBytes); that saves png byte array to a memory buffer. This would be very useful on systems that don't have disk access or when I just want to send a png as a byte stream over a network connection.
Similar to
int cp_save_png(const char* file_name, const cp_image_t* img);
it would be nice to have avoid * cp_save_png_to_mem(const cp_image_t* img, int * outBytes);
that saves png byte array to a memory buffer. This would be very useful on systems that don't have disk access or when I just want to send a png as a byte stream over a network connection.