If you're on a machine where Imlib 2 is installable (unixish), then I have an almost complete binding to Imlib 2 which I threw together quite a while back while learning the FFI:
http://optlab.mcmaster.ca/~cgibbard/Imlib2.hs and an example of using it for a very simple image converter at http://optlab.mcmaster.ca/~cgibbard/convert.hs The binding is pretty thin, but Imlib 2 is a fairly nicely structured library already. It's missing all the calls which have anything at all to do with X, and a neat one for scripting filters which I didn't quite know what to do with since it's variadic. If people want to play around with it, make improvements, etc, that would be great. I haven't tested that everything works, but it will quite likely work reasonably well for simple things. - Cale On Thu, 05 Aug 2004 14:07:02 +0200, Ketil Malde <[EMAIL PROTECTED]> wrote: > > Hi, > > I would like to write an (Array (Int,Int) Int) to a file in some kind > of image format. I implemented (quick and very dirty) XBM output, but > it would be nice to have some colors, and anyway, I can't seem to show > the XBMs as grayscale. > > I've searched around a bit, but the only stuff I could find was > defunct references to GIF writer, Jeroen Fokker's JPEG stuff (which > may still work, but I don't want JPEG compression), and the PPM > support in Andrew Cooke's Pancito. > > Ripping out the latter currently seems to be the best bet, not sure > how closely tied it is to the rest of the code. So, before I start, > does anybody know any other libraries or programs that could be used? > > -kzm > -- > If I haven't seen further, it is by standing in the footprints of giants > _______________________________________________ > Haskell mailing list > [EMAIL PROTECTED] > http://www.haskell.org/mailman/listinfo/haskell > _______________________________________________ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell
