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
BMP | Bitmap image with |
GIF | Graphics Interchange Format image with |
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. |
HDR | High-dynamic-range image with |
ImageFormat HDR | |
ManifestArray arr RGBA Double => Writable (Image arr RGBA Double) HDR | |
ManifestArray arr RGB Double => Writable (Image arr RGB Double) HDR | |
ManifestArray arr YA Double => Writable (Image arr YA Double) HDR | |
ManifestArray arr Y Double => Writable (Image arr Y Double) HDR | |
ManifestArray arr RGB Float => Writable (Image arr RGB Float) HDR | |
Array arr RGBA Double => Readable (Image arr RGBA Double) HDR | |
Array arr RGB Double => Readable (Image arr RGB Double) HDR | |
Array arr YA Double => Readable (Image arr YA Double) HDR | |
Array arr Y Double => Readable (Image arr Y Double) HDR | |
Array arr RGB Float => Readable (Image arr RGB Float) HDR | |
data SaveOption HDR |
JPG | Joint Photographic Experts Group image with |
PNG | Portable Network Graphics image with |
TGA | Truevision Graphics Adapter image with .tga extension. |
TIF | Tagged Image File Format image with |
PBM | Netpbm: portable bitmap image with .pbm extension. |
PGM | Netpbm: portable graymap image with .pgm extension. |
ImageFormat PGM | |
ImageFormat [PGM] | |
Array arr Y Word16 => Readable [Image arr Y Word16] [PGM] | |
Array arr Y Word8 => Readable [Image arr Y Word8] [PGM] | |
Array arr Y Word16 => Readable (Image arr Y Word16) PGM | |
Array arr Y Word8 => Readable (Image arr Y Word8) PGM | |
Array arr Y Double => Readable (Image arr Y Double) PGM | |
data SaveOption PGM | |
data SaveOption [PGM] |
PPM | Netpbm: portable pixmap image with .ppm extension. |
ImageFormat PPM | |
ImageFormat [PPM] | |
Array arr RGB Word16 => Readable [Image arr RGB Word16] [PPM] | |
Array arr RGB Word8 => Readable [Image arr RGB Word8] [PPM] | |
Array arr RGB Word16 => Readable (Image arr RGB Word16) PPM | |
Array arr RGB Word8 => Readable (Image arr RGB Word8) PPM | |
Array arr RGBA Double => Readable (Image arr RGBA Double) PPM | |
Array arr RGB Double => Readable (Image arr RGB Double) PPM | |
Array arr YA Double => Readable (Image arr YA Double) PPM | |
Array arr Y Double => Readable (Image arr Y Double) PPM | |
data SaveOption PPM | |
data SaveOption [PPM] |
data InputFormat Source
A collection of all image formats that can be read into HIP images with
Double
precision pixel channels.
Enum InputFormat | |
Eq InputFormat | |
Show InputFormat | |
ImageFormat InputFormat | |
(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 | |
data SaveOption InputFormat |
data OutputFormat Source
A collection of all image formats that can be written from HIP images with
Double
precision pixel channels.
Enum OutputFormat | |
Eq OutputFormat | |
Show OutputFormat | |
ImageFormat OutputFormat | |
(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 | |
data SaveOption OutputFormat |
class ImageFormat format => Readable img format where Source
decode :: format -> ByteString -> Either String img Source
class ImageFormat format => Writable img format where Source
encode :: format -> [SaveOption format] -> img -> ByteString Source
class ImageFormat format where Source
data SaveOption format Source