X11-1.6.1.2: A binding to the X11 graphics library

Copyright | (c) Frederik Eaton 2006
License | BSD-style (see the file libraries/base/LICENSE)
Maintainer | libraries@haskell.org, frederik@ofb.net
Stability | provisional
Portability | portable
Safe Haskell | Safe
Language | Haskell98

Graphics.X11.Xlib.Image

Description

Xlib image routines

Synopsis

- data Image
- createImage :: Display -> Visual -> CInt -> ImageFormat -> CInt -> Ptr CChar -> Dimension -> Dimension -> CInt -> CInt -> IO Image
- putImage :: Display -> Drawable -> GC -> Image -> Position -> Position -> Position -> Position -> Dimension -> Dimension -> IO ()
- destroyImage :: Image -> IO ()

# Documentation

data Image Source

pointer to an X11 `XImage` structure

Instances

Eq Image Source |
Data Image Source |
Ord Image Source |
Show Image Source |

createImage :: Display -> Visual -> CInt -> ImageFormat -> CInt -> Ptr CChar -> Dimension -> Dimension -> CInt -> CInt -> IO Image Source

interface to the X11 library function `XCreateImage()`.

putImage :: Display -> Drawable -> GC -> Image -> Position -> Position -> Position -> Position -> Dimension -> Dimension -> IO () Source

interface to the X11 library function `XPutImage()`.

destroyImage :: Image -> IO () Source

interface to the X11 library function `XDestroyImage()`.