Safe Haskell | None |
---|---|
Language | Haskell2010 |
Graphics.Image.IO.External
- 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
Constructors
BMP | Bitmap image with |
Instances
Constructors
GIF | Graphics Interchange Format image with |
Instances
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.
Constructors
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.
Constructors
PaletteOptions | |
Fields
|
data PaletteCreationMethod :: *
Define which palette creation method is used.
Constructors
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. |
Constructors
HDR | High-dynamic-range image with |
Instances
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 |
Constructors
JPG | Joint Photographic Experts Group image with |
Instances
Constructors
PNG | Portable Network Graphics image with |
Instances
Constructors
TGA | Truevision Graphics Adapter image with .tga extension. |
Instances
Constructors
TIF | Tagged Image File Format image with |
Instances
Constructors
PBM | Netpbm: portable bitmap image with .pbm extension. |
Constructors
PGM | Netpbm: portable graymap image with .pgm extension. |
Instances
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] |
Constructors
PPM | Netpbm: portable pixmap image with .ppm extension. |
Instances
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.
Instances
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.
Instances
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
Methods
decode :: format -> ByteString -> Either String img Source
Instances
class ImageFormat format => Writable img format where Source
Methods
encode :: format -> [SaveOption format] -> img -> ByteString Source
Instances
class ImageFormat format where Source
Minimal complete definition
Associated Types
data SaveOption format Source