free-game-0.3.0.0: Create graphical applications for free.

Portabilityportable
Stabilityprovisional
MaintainerFumiaki Kinsohita <fumiexcel@gmail.com>
Safe HaskellNone

Graphics.FreeGame.Bitmap

Description

Manipulating bitmaps

Synopsis

Documentation

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

Get the size of the Bitmap.

loadBitmapFromFile :: FilePath -> IO BitmapSource

Create Bitmap from given path.

cropBitmapSource

Arguments

:: Bitmap

original bitmap

-> (Int, Int)

width and height

-> (Int, Int)

x and y

-> Bitmap

result

Extract bitmap from the specified range.