Write an image in a file use the bitmap format.
ModuleJuicyPixels-3.3.9Haskell2010
Codec.Picture.Bitmap
Modules used for Bitmap file (.bmp) file loading and writing
Contents
Synopsis
- value writeBitmap
- value encodeBitmap
- value encodeBitmapWithMetadata
- value decodeBitmap
- value decodeBitmapWithMetadata
- value decodeBitmapWithPaletteAndMetadata
- value encodeDynamicBitmap
- value encodeBitmapWithPaletteAndMetadata
- value writeDynamicBitmap
- class BmpEncodable
- PackageJuicyPixels-3.3.9
- Exports10
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceBitmap.hs
Functions
Encode an image into a bytestring in .bmp format ready to be written on disk.
Equivalent to encodeBitmap but also store the following metadatas:
Try to decode a bitmap image. Right now this function can output the following image:
Same as decodeBitmap but also extracts metadata.
Same as decodeBitmap but also extracts metadata and provide separated palette.
Encode a dynamic image in BMP if possible, supported images are:
Write a dynamic image in a .bmp image file if possible. The same restriction as encodeDynamicBitmap apply.
Accepted format in output
All the instance of this class can be written as a bitmap file using this library.
Instances3BmpEncodable
BmpEncodable Pixel8Defined in JuicyPixels-3.3.9 · Codec.Picture.BitmapBmpEncodable PixelRGB8Defined in JuicyPixels-3.3.9 · Codec.Picture.BitmapBmpEncodable PixelRGBA8Defined in JuicyPixels-3.3.9 · Codec.Picture.Bitmap