Skip to content

Instantly share code, notes, and snippets.

View fubrasp's full-sized avatar
🎯
Focusing

BERTRAND Guillaume fubrasp

🎯
Focusing
View GitHub Profile
@fubrasp
fubrasp / libpng_test.c
Created January 3, 2021 07:50 — forked from niw/libpng_test.c
How to read and write PNG file using libpng. Covers trivial method calls like png_set_filler.
/*
* A simple libpng example program
* http://zarb.org/~gc/html/libpng.html
*
* Modified by Yoshimasa Niwa to make it much simpler
* and support all defined color_type.
*
* To build, use the next instruction on OS X.
* $ brew install libpng
* $ clang -lz -lpng16 libpng_test.c