Codec-Image-DevIL-0.2.0: An FFI interface to the DevIL library

Codec.Image.DevIL

Synopsis

Documentation

readImage :: FilePath -> IO (UArray (Int, Int, Int) Word8)Source

Reads an image into an RGBA array. Indices are (row,column,color-channel).

writeImage :: FilePath -> UArray (Int, Int, Int) Word8 -> IO ()Source

Writes an RGBA array to a file. Indices are (row,column,color-channel).

writeImageFromPtr :: FilePath -> (Int, Int) -> Ptr Word8 -> IO ()Source

Write an image from a pointer to raw RGBA data. Careful! The size tuple is (rows, columns), not (width, height).