Copyright | (c) Bradley Hardy 2016 |
---|---|
License | LGPL3 |
Maintainer | bradleyhardy@live.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Provides a way to produce JuicyPixels
images from PNG data decoded with
streaming-png
.
For example, to load a JuicyPixels
image from a PNG file:
decodePNGFile "my-png.png" >>= imageFromStream :: (MonadIO m, MonadThrow m) => m (Of DynamicImage ())
- imageFromStream :: MonadThrow m => DecodedPNG m r -> m (Of DynamicImage r)
Documentation
imageFromStream :: MonadThrow m => DecodedPNG m r -> m (Of DynamicImage r) Source
Pulls a PNG image stream into memory as a JuicyPixels DynamicImage
.
Currently supports every legal non-indexed colour type.