bitmap-0.0.2: A library for handling and manipulating bitmaps (rectangular pixel arrays).

Safe HaskellSafe-Infered



Saving and loading uncompressed bitmaps. For loading from compressed formats, see the stb-image library:

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.



writeRawData :: PixelComponent t => FilePath -> Bitmap t -> IO ()Source

Saves only the raw pixel data, no resolution etc.