call-0.0: The call game engine

Copyright(c) Fumiaki Kinoshita 2014
LicenseBSD3
MaintainerFumiaki Kinoshita <fumiexcel@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Call.Data.Bitmap

Contents

Description

 

Synopsis

Basic types and functions

data Bitmap Source

Constructors

Bitmap (Image PixelRGBA8) Int 

bitmapSize :: Bitmap -> (Int, Int) Source

Get the size of the Bitmap.

Load and Save

readBitmap :: MonadIO m => FilePath -> m Bitmap Source

Load an image file.

writeBitmap :: MonadIO m => FilePath -> Bitmap -> m () Source

Save Bitmap into a file.

Bitmap operations

cropBitmap Source

Arguments

:: Bitmap

original bitmap

-> (Int, Int)

width and height

-> (Int, Int)

x and y

-> Bitmap

result

Extract a Bitmap from the specified range.

V2