Improving X11.Image

Mitar mmitar at gmail.com
Thu Dec 2 03:08:36 CET 2010


Hi!

I have made some improvements to Graphics.X11.Xlib.Image. Currently it
is made as a independent library which provides extended functionality
(mostly I was interested in saving screen shots of windows), but I
could be easily moved to Graphics.X11.Xlib.Image. Please see attached
files.

image.c and image.h is additional C code required, Image.hsc is an interface to:

PlaneMask,
allPlanes,
Image(..),
getImage,
getPixel,
writeBitmapFile,
getHeader,
readColors,
getXwdColor,
freeReadColors,
saveImage

Some links:

http://tronche.com/gui/x/xlib/graphics/XGetImage.html
http://tronche.com/gui/x/xlib/utilities/XWriteBitmapFile.html

saveImage is a helper function for saving screen shots.


Mitar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.c
Type: text/x-csrc
Size: 3729 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/libraries/attachments/20101202/a5715fdd/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.h
Type: text/x-chdr
Size: 467 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/libraries/attachments/20101202/a5715fdd/attachment.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Image.hsc
Type: application/octet-stream
Size: 5828 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/libraries/attachments/20101202/a5715fdd/attachment.obj>


More information about the Libraries mailing list