X11-1.10.3: 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-Inferred
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 ()
- getImage :: Display -> Drawable -> CInt -> CInt -> CUInt -> CUInt -> CULong -> ImageFormat -> IO Image
- xGetPixel :: Image -> CInt -> CInt -> IO CULong
- getPixel :: Image -> CInt -> CInt -> CULong

# Documentation

data Image #

pointer to an X11 `XImage` structure

#### Instances

Instances details

Data Image # |
Instance details Defined in Graphics.X11.Xlib.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Image -> c Image gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Image toConstr :: Image -> Constr dataTypeOf :: Image -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Image) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Image) gmapT :: (forall b. Data b => b -> b) -> Image -> Image gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Image -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Image -> r gmapQ :: (forall d. Data d => d -> u) -> Image -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Image -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Image -> m Image gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Image -> m Image gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Image -> m Image
Show Image # |
Instance details Defined in Graphics.X11.Xlib.Types Methods showsPrec :: Int -> Image -> ShowS show :: Image -> String showList :: [Image] -> ShowS
Eq Image # |
Instance details Defined in Graphics.X11.Xlib.Types Methods (==) :: Image -> Image -> Bool (/=) :: Image -> Image -> Bool
Ord Image # |
Instance details Defined in Graphics.X11.Xlib.Types Methods compare :: Image -> Image -> Ordering (<) :: Image -> Image -> Bool (<=) :: Image -> Image -> Bool (>) :: Image -> Image -> Bool (>=) :: Image -> Image -> Bool max :: Image -> Image -> Image min :: Image -> Image -> Image

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

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

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

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

destroyImage :: Image -> IO () #

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

getImage :: Display -> Drawable -> CInt -> CInt -> CUInt -> CUInt -> CULong -> ImageFormat -> IO Image #

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

xGetPixel :: Image -> CInt -> CInt -> IO CULong #

getPixel :: Image -> CInt -> CInt -> CULong #

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