bitmaps-0.2.5.1: Bitmap library

Data.Bitmap.Pixel

Description

Support for pixels with a colour depth of 24 or 32, either lacking or containing an alpha component

Greater precision and color depth are not yet supported. Support for floating point representations of components is planned for the future.

Synopsis

Documentation

convertPixelValue :: (Pixel a, Pixel b) => a -> bSource

A less efficient way of converting pixels by their components

data GenPixel Source

Generic pixel type which has not be efficient enough when used with bitmaps in practice

Constructors

GenPixelRGB

The most significant byte is unused

GenPixelBGR

The most significant byte is unused

GenPixelRGBA 
GenPixelBGRA 

neqGenPixelValue :: GenPixel -> GenPixel -> BoolSource

If the Genpixel types differ, they can still be determined to be equivalent if their components are equal

Unlike the default derived instance of Eq,

colorString :: (StringCells s, Pixel p) => s -> Maybe pSource

Return a color from the first 6-bytes of a string representing the red, green, and blue components of the color

 (colorString "FF0000"  :: Maybe PixelRGBA) == Just $ (red =: 0xFF) . (green =: 0x00) . (blue =: 0x00) $ greatestIntensity