-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | An FFI interface to the DevIL library -- -- Provides a very simple interface to the DevIL image library. Provides -- functions readImage and writeImage, which can read and write many -- image formats from/to an RGBA array of values to work with. @package Codec-Image-DevIL @version 0.2.3 module Codec.Image.DevIL ilInit :: IO () -- | Reads an image into an RGBA array. Indices are -- (row,column,color-channel). readImage :: FilePath -> IO (UArray (Int, Int, Int) Word8) -- | Writes an RGBA array to a file. Indices are -- (row,column,color-channel). writeImage :: FilePath -> UArray (Int, Int, Int) Word8 -> IO () -- | Write an image from a pointer to raw RGBA data. Careful! The size -- tuple is (rows, columns), not (width, height). writeImageFromPtr :: FilePath -> (Int, Int) -> Ptr Word8 -> IO () -- | 8-bit unsigned integer type data Word8 :: *