I don't know about that code, but have had good experiences on two projects using the DevIL binding library found on hackage [1]. I tried pngload [2] originally, but that isn't full featured enough for real use. iirc, stb-image [3] had a similar issue of being too bare-bones; the haddock comments agree ("PNG 8-bit only").
In summary, thank you Luke for a good package. Cheers, Thomas [1] http://hackage.haskell.org/package/Codec-Image-DevIL [2] http://hackage.haskell.org/package/pngload [3] http://hackage.haskell.org/packages/archive/stb-image/0.2/doc/html/Codec-Image-STB.html On Mon, Jul 12, 2010 at 9:51 AM, C K Kashyap <ckkash...@gmail.com> wrote: > Hi, > > I tried out the code on this page http://haskell.org/haskellwiki/Library/PNG > but the png file that'e emitted does not seem to open properly with image > viewing tools. Has anyone tried it out? > > I added this bit for supplying the data for image creation - > > count=100 > row = take count (cycle [True,False]) > rows = take 100 (repeat row) > image = png rows > > main=writeFile "hello.png" image > > > > -- > Regards, > Kashyap > > _______________________________________________ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > > _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe