pntr
Image manipulation library
pntr_cute_png

cute_png integration with pntr for loading and saving images. More...

Functions

pntr_imagepntr_cute_png_load_image_from_memory (pntr_image_type type, const unsigned char *fileData, unsigned int dataSize)
 
unsigned char * pntr_cute_png_save_image_to_memory (pntr_image *image, pntr_image_type type, unsigned int *dataSize)
 

Detailed Description

cute_png integration with pntr for loading and saving images.

To use cute_png.h for saving and loading images, define PNTR_CUTE_PNG prior to including pntr.h:

#define PNTR_CUTE_PNG
#define PNTR_IMPLEMENTATION
#include "pntr.h"
See also
https://github.com/RandyGaul/cute_headers/blob/master/cute_png.h
PNTR_CUTE_PNG
PNTR_LOAD_IMAGE_FROM_MEMORY
PNTR_SAVE_IMAGE_TO_MEMORY
PNTR_NO_LOAD_IMAGE
PNTR_NO_SAVE_IMAGE

Function Documentation

◆ pntr_cute_png_load_image_from_memory()

pntr_image * pntr_cute_png_load_image_from_memory ( pntr_image_type  type,
const unsigned char *  fileData,
unsigned int  dataSize 
)

Load a pntr_image using cute_png.

◆ pntr_cute_png_save_image_to_memory()

unsigned char * pntr_cute_png_save_image_to_memory ( pntr_image image,
pntr_image_type  type,
unsigned int *  dataSize 
)

Save an image to memory using cutr_png.