sdl2-cairo-image-1.0.0.2: 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.Load

Contents

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.

Synopsis

loading Image

loadable format

data ImgType Source

Constructors

PNG 
JPG 
BMP 

Default 5x5 Image