Copyright | (c) Alexis Williams 2016 |
---|---|
License | BSD3 |
Maintainer | sasinestro@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Much like the original library, the focus of this library is placed on ease of use rather than richness of feature set, thus the rather spartan interface.
Data types
The Color
type is used to represented the colors that are read out of the image file.
Currently, all images will be read out as RGBA, which is rather storage inefficient, but it's what I need for my application right now and a tagging scheme (to allow a Storable instance for the multiple-form datatype) would be a significant penalty to speed and reduce the space win significantly, and actively penalize the most common case for me.
Loading images
Writing images
writePNG :: FilePath -> Image -> IO () Source #
writePNG
writes the image passed to it out at the path path
in PNG format. The path must include the extension.