accelerate-io-bmp-0.1.0.0: Convert between Accelerate arrays and BMP images

Copyright[2012..2020] The Accelerate Team
LicenseBSD3
MaintainerTrevor L. McDonell <trevor.mcdonell@gmail.com>
Stabilityexperimental
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Data.Array.Accelerate.IO.Codec.BMP

Description

Read and write uncompressed 24 or 32-bit Windows BMP images into a packed-word RGBA format. See the colour-accelerate package for colour representations and utilities such as packing and unpacking.

Synopsis

Documentation

type RGBA32 = Word32 Source #

Packed RGBA pixel data

readImageFromBMP :: FilePath -> IO (Either Error (Array DIM2 RGBA32)) Source #

Read RGBA components from a BMP file.

writeImageToBMP :: FilePath -> Array DIM2 RGBA32 -> IO () Source #

Write the image data to a file.