repa-io-3.2.3.2: Read and write Repa arrays in various formats.
Data.Array.Repa.IO.BMP
Description
Reading and writing arrays as uncompressed 24 or 32 bit Windows BMP files.
Synopsis
readImageFromBMP :: FilePath -> IO (Either Error (Array U DIM2 (Word8, Word8, Word8)))Source
Read RGB components from a BMP file.
writeImageToBMP :: FilePath -> Array U DIM2 (Word8, Word8, Word8) -> IO ()Source
Write RGB components to a BMP file.