Image Library

I need a quick and dirty C/C++ library that allows me to create images such as bmp or png or something. My app generates pixel data for every pixel so I need some (easy) way to save it.
Any suggestions? I want something that I don’t have to spend a long time learning the ins and outs of a complex library (this app is a quick utility that I need).

You mean like libpng?

Thanks, I have looked at libpng a little bit before, I’ll check it out again.
I was hoping to find a bit higher level library but I’ve wasted a lot of time just looking for one, so I better just get coding. :smiley:

EDIT: Just in case anyone does a search, I ended up using pngwriter. It did exactly what I needed (plot each individual pixel). I implemented it in my application with only 4 or 5 lines of code! Very handy library.