Hoogle Search
Within LTS Haskell 24.35 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
decodeBitmap :: ByteString -> Either String DynamicImageJuicyPixels Codec.Picture.Bitmap Try to decode a bitmap image. Right now this function can output the following image:
decodeBitmapWithMetadata :: ByteString -> Either String (DynamicImage, Metadatas)JuicyPixels Codec.Picture.Bitmap Same as decodeBitmap but also extracts metadata.
decodeBitmapWithPaletteAndMetadata :: ByteString -> Either String (PalettedImage, Metadatas)JuicyPixels Codec.Picture.Bitmap Same as decodeBitmap but also extracts metadata and provide separated palette.
encodeBitmap :: BmpEncodable pixel => Image pixel -> ByteStringJuicyPixels Codec.Picture.Bitmap Encode an image into a bytestring in .bmp format ready to be written on disk.
encodeBitmapWithMetadata :: BmpEncodable pixel => Metadatas -> Image pixel -> ByteStringJuicyPixels Codec.Picture.Bitmap Equivalent to encodeBitmap but also store the following metadatas:
-
JuicyPixels Codec.Picture.Bitmap Equivalent to encodeBitmapWithPalette but also store the following metadatas:
encodeDynamicBitmap :: DynamicImage -> Either String ByteStringJuicyPixels Codec.Picture.Bitmap Encode a dynamic image in BMP if possible, supported images are:
writeBitmap :: BmpEncodable pixel => FilePath -> Image pixel -> IO ()JuicyPixels Codec.Picture.Bitmap Write an image in a file use the bitmap format.
writeDynamicBitmap :: FilePath -> DynamicImage -> IO (Either String Bool)JuicyPixels Codec.Picture.Bitmap Write a dynamic image in a .bmp image file if possible. The same restriction as encodeDynamicBitmap apply.
rasterMap :: Monad m => Int -> Int -> (Int -> Int -> m ()) -> m ()JuicyPixels Codec.Picture.Jpg.Internal.Common No documentation available.