pntr
Header-only CPU graphics library
Loading...
Searching...
No Matches
pntr_stb_image_write

stb_image_write integration with pntr for saving images. More...

Functions

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

Detailed Description

stb_image_write integration with pntr for saving images.

To use stb_image_write for saving images, define PNTR_STB_IMAGE prior to including pntr.h. This is provided by default.

#define PNTR_STB_IMAGE
#define PNTR_IMPLEMENTATION
#include "pntr.h"

Image saving can be completely disabled with PNTR_NO_SAVE_IMAGE.

See also
https://github.com/nothings/stb/blob/master/stb_image_write.h
PNTR_STB_IMAGE
PNTR_SAVE_IMAGE_TO_MEMORY
PNTR_NO_SAVE_IMAGE

Function Documentation

◆ pntr_stb_image_save_image_to_memory()

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

Save an image using stb_image.