-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Support for image reading and writing of Repa arrays -- -- The repa-image library adds support for reading and writing images in -- many formats based on the DevIL open source image library. Image data -- is represented in Haskell as typed, multi-dimensional repa arrays. -- -- Developer's Image Library (DevIL) is a library to develop applications -- with very powerful image loading capabilities, yet with a relatively -- simple interface. DevIL can load, save, convert, manipulate, filter -- and display a wide variety of image formats, including: -- -- -- -- References: -- -- @package repa-devil @version 0.1 -- | Read and write images in many formats, representing them in Haskell as -- a 3-dimensional repa array. Image parsing and decoding is done -- by the Developers Image Library, DevIL. -- -- -- -- Example: read a .png file into a 3D repa array, and write it out as a -- .jpg -- --
--   main = runIL $
--            x <- readImage "/tmp/y.png" 
--            writeImage "/tmp/x.jpg" x
--   
-- -- Note that as DevIL is stateful, we ensure the library is initialized -- by running image manipulation functions in the IL monad, a -- wrapper over IO that ensures the library has been initialized. It is a -- type error to call image functions outside of the IL monad. module Data.Array.Repa.IO.DevIL -- | Running code in the IL monad. This is a simple wrapper over -- IO that guarantees the DevIL library has been initialized -- before you run functions on it. runIL :: IL a -> IO a -- | The IL monad. Provides statically-guaranteed access to an initialized -- IL context. data IL a -- | Reads an image into an RGBA array. Indices are -- (row,column,color-channel). -- -- Example: -- --
--   main = do
--      x <- runIL $ readImage "/tmp/x.png"
--      .. operations on x ..
--   
-- -- Note: The image input type is determined by the filename -- extension. readImage :: FilePath -> IL (Array DIM3 Word8) -- | Writes an RGBA array to a file. Indices are the row, column, and -- color-channel. -- -- Note: The image output type is determined by the filename -- extension. writeImage :: FilePath -> Array DIM3 Word8 -> IL () instance Monad IL instance MonadIO IL