Skip to content

cf_image_load_png_from_memory

Category: image
GitHub: cute_image.h


Loads a png image from memory.

CF_Result cf_image_load_png_from_memory(const void* data, int size, CF_Image* img);
Parameters Description
data Pointer to the png file in memory.
size The number of bytes in the data pointer.
img Out parameter for the image.

Return Value

Check the CF_Result for errors.

CF_Image
cf_image_load_png
cf_image_premultiply
cf_image_load_png_wh
cf_image_load_png_indexed
cf_image_save_png
cf_image_save_png_to_memory