Ketil Malde wrote:
I would like to write an (Array (Int,Int) Int) to a file in some kind> [snip]
of image format. I implemented (quick and very dirty) XBM output,
So, before I start, does anybody know any other libraries or programs that could be used?
Hi Ketil,
You could use wxHaskell to write (and read) files in many different
formats (like png, bmp, tif, jpg, ico, xbm, etc). If you build from
CVS, you will find the function "imageGetPixelArray" and "imageCreateFromPixelArray" in the "Graphics.UI.WXCore.Image" module.
If you use the latest packaged 0.8 release, you will have to do with the lower level "pixelBufferSet/GetPixel" functions.
Note that if you do not call "start", there is no GUI stuff
involved and you can just use the image conversion functions of wxHaskell in a console application.
Not a minimal solution, but maybe good enough for your purposes. All the best, Daan.
ps. In a recent mail to shelarcy in the wxHaskell users mail archive
you can find a program that shows how to use the lower level pixelBuffer functions in wxHaskell 0.8:
<http://sourceforge.net/mailarchive/message.php?msg_id=9127088>
_______________________________________________ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell
