Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data BitmapImageString = forall s . StringCells s => BitmapImageString {}
- data BitmapStringRGB24A4VR = BitmapStringRGB24A4VR {}
- bmps_dimensions :: forall cat. ArrowApply cat => Lens cat BitmapStringRGB24A4VR (Int, Int)
- bmps_data :: forall cat. ArrowApply cat => Lens cat BitmapStringRGB24A4VR BitmapImageString
- bytesPerRow :: Int -> Int -> Int -> (Int, Int)
- bitmapStringBytesPerRow :: BitmapStringRGB24A4VR -> (Int, Int)
- widthPadding :: Int -> String
- encodeIBF_RGB24A4VR' :: StringCells s => BitmapStringRGB24A4VR -> s
- tryIBF_RGB24A4VR' :: StringCells s => BitmapStringRGB24A4VR -> s -> Either String BitmapStringRGB24A4VR
- padByte :: Word8
- imageSize :: Dimensions Int -> Int
Documentation
data BitmapImageString Source
Container for a string that represents a sequence of raw pixels lacking the alpha component and that is stored upside down
forall s . StringCells s => BitmapImageString | |
data BitmapStringRGB24A4VR Source
A bitmap represented as a string
This is essentially the format of pixels in the BMP format in which each row is aligned to a four-byte boundry and each row contains a series of RGB pixels.
This type is most efficient for programs interacting heavily with BMP files.
BitmapStringRGB24A4VR | |
|
bmps_dimensions :: forall cat. ArrowApply cat => Lens cat BitmapStringRGB24A4VR (Int, Int) Source
bmps_data :: forall cat. ArrowApply cat => Lens cat BitmapStringRGB24A4VR BitmapImageString Source
bytesPerRow :: Int -> Int -> Int -> (Int, Int) Source
Return (rowSize, paddingSize) based on width, bytes per pixel, and alignment
widthPadding :: Int -> String Source
encodeIBF_RGB24A4VR' :: StringCells s => BitmapStringRGB24A4VR -> s Source
tryIBF_RGB24A4VR' :: StringCells s => BitmapStringRGB24A4VR -> s -> Either String BitmapStringRGB24A4VR Source
imageSize :: Dimensions Int -> Int Source