Skip to content

cf_debug_dump_pixels

Category: image
GitHub: cute_image.h


Saves out an image to a png file on disk.

void cf_debug_dump_pixels(const char* path, CF_Pixel* pixels, int w, int h);

Remarks

Does not use the virtual file system. Instead it uses plain old platform-dependent path notation. This function is not really optimized whatsoever and outputs poorly compressed file sizes.

CF_Image
cf_debug_dump_greyscale_pixels