[Haskell-cafe] PNG sample on haskellwiki
thomas.dubuisson at gmail.com
Mon Jul 12 13:11:57 EDT 2010
I don't know about that code, but have had good experiences on two
projects using the DevIL binding library found on hackage . I
tried pngload  originally, but that isn't full featured enough for
real use. iirc, stb-image  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.
On Mon, Jul 12, 2010 at 9:51 AM, C K Kashyap <ckkashyap at gmail.com> wrote:
> 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 -
> row = take count (cycle [True,False])
> rows = take 100 (repeat row)
> image = png rows
> main=writeFile "hello.png" image
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe