[Haskell-cafe] Loading bitmap with xlib

Francesco Mazzoli f at mazzo.li
Sat Jan 29 15:36:46 CET 2011


I am trying to load a bitmap and display it with the Xlib bindings, but I wasn't
able to find a way.
The C Xlib functions would be XReadBitmapFile() of XReadBitmapFileData() to read
the data, but it seems that those functions haven't been included in the haskell
bindings.
From
http://hackage.haskell.org/packages/archive/X11/latest/doc/html/src/Graphics-X11-Xlib-Misc.html:

-- XCreateBitmapFromData omitted (awkward looking type)
-- XReadBitmapFileData omitted (awkward looking type)

Does anybody know how to do that?




More information about the Haskell-Cafe mailing list