Copyright | (c) Alexey Kuleshevich 2017 |
---|---|
License | BSD3 |
Maintainer | Alexey Kuleshevich <lehins@yandex.ru> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
- 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.
ImageFormat BMP Source # | |
data SaveOption BMP Source # | |
Graphics Interchange Format image with .gif
extension.
ImageFormat GIF Source # | |
data SaveOption GIF 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.
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 # | |
data SaveOption HDR Source # | |
Joint Photographic Experts Group image with .jpg
or .jpeg
extension.
ImageFormat JPG Source # | |
data SaveOption JPG Source # | |
Portable Network Graphics image with .png
extension.
ImageFormat PNG Source # | |
data SaveOption PNG Source # | |
Truevision Graphics Adapter image with .tga extension.
ImageFormat TGA Source # | |
data SaveOption TGA Source # | |
Tagged Image File Format image with .tif
or .tiff
extension.
ImageFormat TIF Source # | |
data SaveOption TIF Source # | |
Netpbm: portable bitmap image with .pbm
extension.
Netpbm: portable graymap image with .pgm
extension.
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.
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.
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.
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.
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
.
(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.
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.
class Convertible a b where Source #
Used during converting pixels between libraries.