| Portability | non-portable |
|---|---|
| Stability | experimental |
| Maintainer | Fumiaki Kinsohita <fumiexcel@gmail.com> |
| Safe Haskell | None |
Graphics.FreeGame.Data.Bitmap
Description
Manipulating bitmaps
- data Bitmap
- bitmapData :: Bitmap -> Array F DIM3 Word8
- bitmapHash :: Bitmap -> Maybe Int
- bitmapSize :: Bitmap -> (Int, Int)
- loadBitmapFromFile :: FilePath -> IO Bitmap
- toBitmap :: Array F DIM3 Word8 -> Bitmap
- toStableBitmap :: Array F DIM3 Word8 -> Bitmap
- makeStableBitmap :: Array F DIM3 Word8 -> IO Bitmap
- onBitmap :: (Array F DIM3 Word8 -> Array F DIM3 Word8) -> Bitmap -> Bitmap
- onBitmapWithHashable :: Hashable h => h -> (Array F DIM3 Word8 -> Array F DIM3 Word8) -> Bitmap -> Bitmap
- cropBitmap :: Bitmap -> (Int, Int) -> (Int, Int) -> Bitmap
Basic types and functions
bitmapData :: Bitmap -> Array F DIM3 Word8Source
Bare the Bitmap's internal representation (y * x * RGBA).
bitmapHash :: Bitmap -> Maybe IntSource
This value is used to ensure that two bitmaps are equivalent.
Loading from a file
Constructing bitmaps
Bitmap operations
onBitmap :: (Array F DIM3 Word8 -> Array F DIM3 Word8) -> Bitmap -> BitmapSource
Convert the Bitmap by the given function.