| Copyright | Copyright (c) 2015 Yun-Yan Chi |
|---|---|
| License | MIT |
| Maintainer | jaiyalas@gmail.com |
| Safe Haskell | None |
| Language | Haskell2010 |
SDL.Cairo.Image.Loader
Contents
Description
This module exposes the functions to load image files into memory by using JuicyPixel (See https://hackage.haskell.org/package/JuicyPixels).
So far, supports only format PNG (Portable Network Graphics) and
two kinds of pixel format PixelRGB8 and PixelRGBA8.
- loadPNGRGB :: FilePath -> IO (Image PixelRGB8)
- loadPNGRGBA :: FilePath -> IO (Image PixelRGBA8)
- defImageRGB8 :: Image PixelRGB8
- defImageRGBA8 :: Image PixelRGBA8
Image loading
loadPNGRGB :: FilePath -> IO (Image PixelRGB8)
...
loadPNGRGBA :: FilePath -> IO (Image PixelRGBA8)
...
Default image
defImageRGB8 :: Image PixelRGB8
defImageRGBA8 :: Image PixelRGBA8