Portability | non-portable |
---|---|
Stability | experimental |
Maintainer | Fumiaki Kinoshita <fumiexcel@gmail.com> |
Safe Haskell | None |
Manipulating bitmaps
- type Bitmap = Image PixelRGBA8
- bitmapSize :: Bitmap -> (Int, Int)
- readBitmap :: MonadIO m => FilePath -> m Bitmap
- writeBitmap :: MonadIO m => FilePath -> Bitmap -> m ()
- loadBitmapFromFile :: MonadIO m => FilePath -> m Bitmap
- cropBitmap :: Bitmap -> (Int, Int) -> (Int, Int) -> Bitmap
Basic types and functions
type Bitmap = Image PixelRGBA8Source
Load and Save
readBitmap :: MonadIO m => FilePath -> m BitmapSource
Load an image file.
loadBitmapFromFile :: MonadIO m => FilePath -> m BitmapSource
Deprecated: use readBitmap instead