Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 874 Bytes

README.md

File metadata and controls

43 lines (25 loc) · 874 Bytes

all2ppm

A library and a bunch of programs to save netpbm files.

Programs

all2pam

Save anything (using stb_image) to PAM (P7) format.

all2pbm

Save anything (using stb_image) to PBM (P4) format.

all2ppm

Save anything (using stb_image) to PPM (P5 or P6) format.

Library

ppm saver

Can be 1 (grayscale) or 3 (rgb) channels.

bool ppmSave(unsigned int sizex, unsigned int sizey, unsigned int channels, unsigned char *buf, FILE *f);

pam saver

Can be 1 (grayscale), 2 (grayscale+alpha), 3 (rbg) or 4 (rgba) channels.

bool pamSave(unsigned int sizex, unsigned int sizey, unsigned int channels, unsigned char *buf, FILE *f);

pbm saver

bool pbmSave(unsigned int sizex, unsigned int sizey, unsigned char *buf, FILE *f);