Skip to content

cf_image_load_png_wh

Category: image
GitHub: cute_image.h


Loads a just the width/height out of a png image, without processing the pixels.

CF_Result cf_image_load_png_wh(const void* data, int size, int* w, int* h);
Parameters Description
data Pointer to the png file in memory.
size The number of bytes in the data pointer.
w Out parameter for the width of the image.
h Out parameter for the height of the image.

Return Value

Check the CF_Result for errors.

CF_Image
cf_image_load_png
cf_image_load_png_from_memory
cf_image_premultiply
cf_image_load_png_indexed