[Haskell-cafe] PNG sample on haskellwiki

C K Kashyap ckkashyap at gmail.com
Mon Jul 12 12:51:01 EDT 2010


I tried out the code on this page
http://haskell.org/haskellwiki/Library/PNGbut 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100712/ccd8137d/attachment.html

More information about the Haskell-Cafe mailing list