Creating code, mostly for the fun of seeing it work.

png files

OSMPosted by Chris Thu, October 02, 2008 21:30:29
I've now just bitten off much more than I think I chew. The tiles that make up a map are .png files. If I'm going to create a tile, I need to draw a .png file. I searched t'interweb and came up with libpng. It seems to be the definitive way to read and write png files, but it is pretty long-winded. I dug about a bit more and found pngwriter. This library seems much easier (I wrote a .png file with an image on it in a few minutes), but when I looked at the documentation a bit more there's some stuff missing - line thickness, dotted lines etc.

It looks like I might have to get into libpng and it might take a while ...

  • Comments(0)//