Copyright | (c) Alexey Kuleshevich 2016 |
---|---|
License | BSD3 |
Maintainer | Alexey Kuleshevich <[email protected]> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Graphics.Image.IO.Formats
Description
- 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
- class ImageFormat format => Writable img format where
- class ImageFormat format where
- data SaveOption format
Documentation
Bitmap image with .bmp
extension.
Constructors
BMP |
Instances
ImageFormat BMP Source # | |
Writable (Image VS RGBA Double) BMP Source # | |
Writable (Image VS RGBA Word8) BMP Source # | |
Writable (Image VS RGB Double) BMP Source # | |
Writable (Image VS RGB Word8) BMP Source # | |
Writable (Image VS YA Double) BMP Source # | |
Writable (Image VS Y Double) BMP Source # | |
Writable (Image VS Y Word8) BMP Source # | |
Writable (Image VS Binary Bit) BMP Source # | |
Array arr RGBA Double => Readable (Image arr RGBA Double) BMP Source # | |
Array arr RGB Double => Readable (Image arr RGB Double) BMP Source # | |
Array arr YA Double => Readable (Image arr YA Double) BMP Source # | |
Array arr Y Double => Readable (Image arr Y Double) BMP Source # | |
Readable (Image VS RGBA Word8) BMP Source # | |
Readable (Image VS RGB Word8) BMP Source # | |
Readable (Image VS Y Word8) BMP Source # | |
Readable (Image VS Binary Bit) BMP Source # | |
data SaveOption BMP Source # | |
Graphics Interchange Format image with .gif
extension.
Constructors
GIF |
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. |
High-dynamic-range image with .hdr
or .pic
extension.
Constructors
HDR |
Instances
ImageFormat HDR Source # | |
Writable (Image VS RGBA Double) HDR Source # | |
Writable (Image VS RGB Double) HDR Source # | |
Writable (Image VS RGB Float) HDR Source # | |
Writable (Image VS YA Double) HDR Source # | |
Writable (Image VS Y Double) 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 # | |
Readable (Image VS RGB Float) HDR Source # | |
data SaveOption HDR Source # | |
Joint Photographic Experts Group image with .jpg
or .jpeg
extension.
Constructors
JPG |
Instances
ImageFormat JPG Source # | |
Writable (Image VS YCbCr Word8) JPG Source # | |
Writable (Image VS RGBA Double) JPG Source # | |
Writable (Image VS RGB Double) JPG Source # | |
Writable (Image VS RGB Word8) JPG Source # | |
Writable (Image VS YA Double) JPG Source # | |
Writable (Image VS Y Double) JPG Source # | |
Writable (Image VS Y Word8) JPG Source # | |
Writable (Image VS CMYK Word8) JPG Source # | |
Array arr RGBA Double => Readable (Image arr RGBA Double) JPG Source # | |
Array arr RGB Double => Readable (Image arr RGB Double) JPG Source # | |
Array arr YA Double => Readable (Image arr YA Double) JPG Source # | |
Array arr Y Double => Readable (Image arr Y Double) JPG Source # | |
Readable (Image VS YCbCr Word8) JPG Source # | |
Readable (Image VS RGB Word8) JPG Source # | |
Readable (Image VS YA Word8) JPG Source # | |
Readable (Image VS Y Word8) JPG Source # | |
Readable (Image VS CMYK Word8) JPG Source # | |
data SaveOption JPG Source # | |
Portable Network Graphics image with .png
extension.
Constructors
PNG |
Instances
Truevision Graphics Adapter image with .tga extension.
Constructors
TGA |
Instances
ImageFormat TGA Source # | |
Writable (Image VS RGBA Double) TGA Source # | |
Writable (Image VS RGBA Word8) TGA Source # | |
Writable (Image VS RGB Double) TGA Source # | |
Writable (Image VS RGB Word8) TGA Source # | |
Writable (Image VS YA Double) TGA Source # | |
Writable (Image VS Y Double) TGA Source # | |
Writable (Image VS Y Word8) TGA Source # | |
Writable (Image VS Binary Bit) TGA Source # | |
Array arr RGBA Double => Readable (Image arr RGBA Double) TGA Source # | |
Array arr RGB Double => Readable (Image arr RGB Double) TGA Source # | |
Array arr YA Double => Readable (Image arr YA Double) TGA Source # | |
Array arr Y Double => Readable (Image arr Y Double) TGA Source # | |
Readable (Image VS RGBA Word8) TGA Source # | |
Readable (Image VS RGB Word8) TGA Source # | |
Readable (Image VS Y Word8) TGA Source # | |
Readable (Image VS Binary Bit) TGA Source # | |
data SaveOption TGA Source # | |
Tagged Image File Format image with .tif
or .tiff
extension.
Constructors
TIF |
Instances
Netpbm: portable bitmap image with .pbm
extension.
Constructors
PBM |
Netpbm: portable graymap image with .pgm
extension.
Constructors
PGM |
Instances
ImageFormat PGM Source # | |
ImageFormat [PGM] Source # | |
Readable [Image VS Y Word8] [PGM] Source # | |
Readable [Image VS Y Word16] [PGM] Source # | |
Array arr Y Double => Readable (Image arr Y Double) PGM Source # | |
Readable (Image VS Y Word8) PGM Source # | |
Readable (Image VS Y Word16) PGM Source # | |
data SaveOption PGM Source # | |
data SaveOption [PGM] Source # | |
Netpbm: portable pixmap image with .ppm
extension.
Constructors
PPM |
Instances
ImageFormat PPM Source # | |
ImageFormat [PPM] Source # | |
Readable [Image VS RGB Word8] [PPM] Source # | |
Readable [Image VS RGB Word16] [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 # | |
Readable (Image VS RGB Word8) PPM Source # | |
Readable (Image VS RGB Word16) 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.
Instances
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 to file using images with
Double
precision pixels.
Instances
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.
Minimal complete definition
Instances
class ImageFormat format => Writable img format where Source #
Image formats that can be written to file.
Minimal complete definition
Methods
encode :: format -> [SaveOption format] -> img -> ByteString Source #
Encode an image to ByteString
.
Instances
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.
Minimal complete definition
Associated Types
data SaveOption format Source #
Options that can be used during writing an image in this format.
Methods
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.
Instances