Safe Haskell | Safe-Infered |
---|
Saving and loading uncompressed bitmaps.
For loading from compressed formats, see the stb-image
library:
http://hackage.haskell.org/package/stb-image.
The goal of this module is to provide the simplest possible interface for loading and saving bitmaps; so you can start experimenting without much hassle.
Note: Endianness is the endianness of the host, so the resulting file is not portable across platforms with different endiannesses.
See the module Data.Bitmap.IO.File for the file format.
- readBitmap :: PixelComponent t => FilePath -> IO (Bitmap t)
- writeBitmap :: PixelComponent t => FilePath -> Bitmap t -> IO ()
- readRawData :: PixelComponent t => FilePath -> (Size, NChn, PixelComponentType) -> IO (Bitmap t)
- writeRawData :: PixelComponent t => FilePath -> Bitmap t -> IO ()
Documentation
readBitmap :: PixelComponent t => FilePath -> IO (Bitmap t)Source
writeBitmap :: PixelComponent t => FilePath -> Bitmap t -> IO ()Source
readRawData :: PixelComponent t => FilePath -> (Size, NChn, PixelComponentType) -> IO (Bitmap t)Source
writeRawData :: PixelComponent t => FilePath -> Bitmap t -> IO ()Source
Saves only the raw pixel data, no resolution etc.