| Copyright | Copyright (c) 2015 Yun-Yan Chi |
|---|---|
| License | MIT |
| Maintainer | jaiyalas@gmail.com |
| Safe Haskell | None |
| Language | Haskell2010 |
SDL.Cairo.Image.Load
Description
This module exposes wrapper functions to load image files into memory by using JuicyPixel (See https://hackage.haskell.org/package/JuicyPixels).
So far, supported file formats are only PNG, JPG, BMP.
Plus, merely four pixel formats
PixelRGB8, PixelRGB16, PixelRGBA8 and PixelRGBA16
are supported.
- loadRGB8 :: ImgType -> FilePath -> IO (Image PixelRGB8)
- loadRGB16 :: ImgType -> FilePath -> IO (Image PixelRGB16)
- loadRGBA8 :: ImgType -> FilePath -> IO (Image PixelRGBA8)
- loadRGBA16 :: ImgType -> FilePath -> IO (Image PixelRGBA16)
- data ImgType
- defImageRGB8 :: Image PixelRGB8
- defImageRGB16 :: Image PixelRGB16
- defImageRGBA8 :: Image PixelRGBA8
- defImageRGBA16 :: Image PixelRGBA16
loading Image
loadRGBA16 :: ImgType -> FilePath -> IO (Image PixelRGBA16) Source