Copyright | (c) Alexey Kuleshevich 2017 |
---|---|
License | BSD3 |
Maintainer | Alexey Kuleshevich <lehins@yandex.ru> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Graphics.Image.IO.Formats
Contents
Description
- data BMP = BMP
- data GIF = GIF
- data GIFA = GIFA
- 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
- class Convertible a b where
Documentation
Bitmap image with .bmp
extension.
Constructors
BMP |
Instances
ImageFormat BMP Source # | |
data SaveOption BMP Source # | |
Graphics Interchange Format image with .gif
extension.
Constructors
GIF |
Instances
ImageFormat GIF Source # | |
data SaveOption GIF Source # | |
Constructors
GIFA |
Instances
ImageFormat GIFA Source # | |
data SaveOption GIFA Source # | |
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 # | |
data SaveOption HDR Source # | |
Joint Photographic Experts Group image with .jpg
or .jpeg
extension.
Constructors
JPG |
Instances
ImageFormat JPG Source # | |
data SaveOption JPG Source # | |
Portable Network Graphics image with .png
extension.
Constructors
PNG |
Instances
ImageFormat PNG Source # | |
data SaveOption PNG Source # | |
Truevision Graphics Adapter image with .tga extension.
Constructors
TGA |
Instances
ImageFormat TGA Source # | |
data SaveOption TGA Source # | |
Tagged Image File Format image with .tif
or .tiff
extension.
Constructors
TIF |
Instances
ImageFormat TIF Source # | |
data SaveOption TIF Source # | |
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 # | |
Readable (Image VS 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 # | |
Readable (Image VS YA Double) PPM Source # | |
Readable (Image VS Y Double) PPM Source # | |
Readable (Image VS RGBA Double) PPM Source # | |
Readable (Image VS RGB 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.
Instances
Bounded InputFormat Source # | |
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
Bounded OutputFormat Source # | |
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
(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 # | |
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
class Convertible a b where Source #
Used during converting pixels between libraries.
Minimal complete definition