sdl2-cairo-image-0.0.0.1: An image loading and rendering library for sdl2 / sdl2-cairo

CopyrightCopyright (c) 2015 Yun-Yan Chi
LicenseMIT
Maintainerjaiyalas@gmail.com
Safe HaskellNone
LanguageHaskell2010

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.

Synopsis

Image loading

loadPNGRGB :: FilePath -> IO (Image PixelRGB8)

...

loadPNGRGBA :: FilePath -> IO (Image PixelRGBA8)

...

Default image

defImageRGB8 :: Image PixelRGB8

defImageRGBA8 :: Image PixelRGBA8