justgook/elm-image/4.0.0

NOTE: the latest version is 5.0.0

Image.Info

type Info
= Png PngInfo
| Bmp BmpInfo
| Gif GifInfo
| FromData FromDataInfo
= Greyscale BitDepth1_2_4_8_16
| GreyscaleAlpha BitDepth8_16
| TrueColour BitDepth8_16
| TrueColourAlpha BitDepth8_16
| IndexedColour BitDepth1_2_4_8
type alias PngInfo =
{ width : Int
, height : Int
, color : PngColor
, adam7 : Bool
}
type alias BmpInfo =
{ width : Int
, height : Int
, fileSize : Int
, pixelStart : Int
, dibHeader : Int
, color_planes : Int
, bitsPerPixel : BmpBitsPerPixel
, compression : Int
, dataSize : Int
}
type alias FromDataInfo =
{ width : Int
, height : Int
, color : FromDataColor
}

Helper functions

-> { width : Int
, height : Int
}

Helper types

= BitDepth1_2_4_8__1
| BitDepth1_2_4_8__2
| BitDepth1_2_4_8__4
| BitDepth1_2_4_8__8
= BitDepth1_2_4_8_16__1
| BitDepth1_2_4_8_16__2
| BitDepth1_2_4_8_16__4
| BitDepth1_2_4_8_16__8
| BitDepth1_2_4_8_16__16
= BitDepth8_16__8
| BitDepth8_16__16
= BmpBitsPerPixel8
| BmpBitsPerPixel16
| BmpBitsPerPixel24
| BmpBitsPerPixel32
= FromDataBitDepth1
| FromDataBitDepth2
| FromDataBitDepth4
| FromDataBitDepth8
| FromDataBitDepth16
= FromDataChannel1 FromDataBitDepth
| FromDataChannel2 FromDataBitDepth
| FromDataChannel3 FromDataBitDepth
| FromDataChannel4 FromDataBitDepth