How to unload an array of pixels as png?

I am on MacOSX.

I read the image since

char image[WIDTH][HEIGHT][3]; // row, col, rgb value

Now I want to upload it as a png file. What is the fastest way to do this?

+3
source share
3 answers

http://zarb.org/~gc/html/libpng.html <- an amazing tutorial.

0
source

You must use libpng . I don’t have a Mac, so I can’t say if it was already preinstalled, but it should be !:-)

+1
source

- , PNG.

+1

Source: https://habr.com/ru/post/1731653/


All Articles