Copyright | (c) Alexey Kuleshevich 2016 |
---|---|
License | BSD3 |
Maintainer | Alexey Kuleshevich <lehins@yandex.ru> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
- data BMP = BMP
- data GIF = GIF
- type GifDelay = Int
- data GifLooping :: *
- data PaletteOptions :: * = PaletteOptions {}
- data PaletteCreationMethod :: *
- data HDR = HDR
- data JPG = JPG
- data PNG = PNG
- data TGA = TGA
- data TIF = TIF
- data PBM = PBM
- data PGM = PGM
- data PPM = PPM
- data InputFormat
- data OutputFormat
- class ImageFormat format => Readable img format where
- decode :: format -> ByteString -> Either String img
- class ImageFormat format => Writable img format where
- encode :: format -> [SaveOption format] -> img -> ByteString
- class ImageFormat format where
Documentation
Bitmap image with .bmp
extension.
Graphics Interchange Format image with .gif
extension.
Delay to wait before showing the next Gif image. The delay is expressed in 100th of seconds.
data GifLooping :: *
Help to control the behaviour of GIF animation looping.
LoopingNever | The animation will stop once the end is reached |
LoopingForever | The animation will restart once the end is reached |
LoopingRepeat Word16 | The animation will repeat n times before stoping |
data PaletteOptions :: *
To specify how the palette will be created.
PaletteOptions | |
|
data PaletteCreationMethod :: *
Define which palette creation method is used.
MedianMeanCut | MedianMeanCut method, provide the best results (visualy) at the cost of increased calculations. |
Uniform | Very fast algorithm (one pass), doesn't provide good looking results. |
High-dynamic-range image with .hdr
or .pic
extension.
ImageFormat HDR Source | |
ManifestArray arr RGBA Double => Writable (Image arr RGBA Double) HDR Source | |
ManifestArray arr RGB Double => Writable (Image arr RGB Double) HDR Source | |
ManifestArray arr YA Double => Writable (Image arr YA Double) HDR Source | |
ManifestArray arr Y Double => Writable (Image arr Y Double) HDR Source | |
ManifestArray arr RGB Float => Writable (Image arr RGB Float) HDR Source | |
Array arr RGBA Double => Readable (Image arr RGBA Double) HDR Source | |
Array arr RGB Double => Readable (Image arr RGB Double) HDR Source | |
Array arr YA Double => Readable (Image arr YA Double) HDR Source | |
Array arr Y Double => Readable (Image arr Y Double) HDR Source | |
Array arr RGB Float => Readable (Image arr RGB Float) HDR Source | |
data SaveOption HDR Source |
Joint Photographic Experts Group image with .jpg
or .jpeg
extension.
Portable Network Graphics image with .png
extension.
Truevision Graphics Adapter image with .tga extension.
Tagged Image File Format image with .tif
or .tiff
extension.
Netpbm: portable bitmap image with .pbm
extension.
ImageFormat PBM Source | |
ImageFormat [PBM] Source | |
Array arr Binary Bit => Readable [Image arr Binary Bit] [PBM] Source | |
Array arr Binary Bit => Readable (Image arr Binary Bit) PBM Source | |
Array arr Y Double => Readable (Image arr Y Double) PBM Source | |
data SaveOption PBM Source | |
data SaveOption [PBM] Source |
Netpbm: portable graymap image with .pgm
extension.
ImageFormat PGM Source | |
ImageFormat [PGM] Source | |
Array arr Y Word16 => Readable [Image arr Y Word16] [PGM] Source | |
Array arr Y Word8 => Readable [Image arr Y Word8] [PGM] Source | |
Array arr Y Word16 => Readable (Image arr Y Word16) PGM Source | |
Array arr Y Word8 => Readable (Image arr Y Word8) PGM Source | |
Array arr Y Double => Readable (Image arr Y Double) PGM Source | |
data SaveOption PGM Source | |
data SaveOption [PGM] Source |
Netpbm: portable pixmap image with .ppm
extension.
ImageFormat PPM Source | |
ImageFormat [PPM] Source | |
Array arr RGB Word16 => Readable [Image arr RGB Word16] [PPM] Source | |
Array arr RGB Word8 => Readable [Image arr RGB Word8] [PPM] Source | |
Array arr RGB Word16 => Readable (Image arr RGB Word16) PPM Source | |
Array arr RGB Word8 => Readable (Image arr RGB Word8) PPM Source | |
Array arr RGBA Double => Readable (Image arr RGBA Double) PPM Source | |
Array arr RGB Double => Readable (Image arr RGB Double) PPM Source | |
Array arr YA Double => Readable (Image arr YA Double) PPM Source | |
Array arr Y Double => Readable (Image arr Y Double) PPM Source | |
data SaveOption PPM Source | |
data SaveOption [PPM] Source |
data InputFormat Source
A collection of all image formats that can be read into HIP images with
Double
precision pixel channels.
Enum InputFormat Source | |
Eq InputFormat Source | |
Show InputFormat Source | |
ImageFormat InputFormat Source | |
(Readable (Image arr cs Double) BMP, Readable (Image arr cs Double) GIF, Readable (Image arr cs Double) HDR, Readable (Image arr cs Double) JPG, Readable (Image arr cs Double) PNG, Readable (Image arr cs Double) TGA, Readable (Image arr cs Double) TIF, Readable (Image arr cs Double) PPM) => Readable (Image arr cs Double) InputFormat Source | |
data SaveOption InputFormat Source |
data OutputFormat Source
A collection of all image formats that can be written from HIP images with
Double
precision pixel channels.
Enum OutputFormat Source | |
Eq OutputFormat Source | |
Show OutputFormat Source | |
ImageFormat OutputFormat Source | |
(Writable (Image arr cs Double) BMP, Writable (Image arr cs Double) GIF, Writable (Image arr cs Double) HDR, Writable (Image arr cs Double) JPG, Writable (Image arr cs Double) PNG, Writable (Image arr cs Double) TGA, Writable (Image arr cs Double) TIF) => Writable (Image arr cs Double) OutputFormat Source | |
data SaveOption OutputFormat Source |
class ImageFormat format => Readable img format where Source
Image formats that can be read from file.
decode :: format -> ByteString -> Either String img Source
Decode an image from ByteString
.
class ImageFormat format => Writable img format where Source
Image formats that can be written to file.
encode :: format -> [SaveOption format] -> img -> ByteString Source
Encode an image to ByteString
.
class ImageFormat format where Source
Image file format. Helps in guessing image format using a file extension, as well as supplying format specific options during saving an image.
data SaveOption format Source
Options that can be used during writing an image in this format.
ext :: format -> String Source
Default file extension for this image format.
exts :: format -> [String] Source
Known extensions for this image format.
isFormat :: String -> format -> Bool Source
Returns True
if a file extension (ex. ".png"
) corresponds to this format.