|
|
|
|
Synopsis |
|
|
|
Documentation |
|
|
type of channels
|
|
|
A pixel map, stored as separate 2D mutable, C-compatible arrays for each channel in w,h order
| Constructors | PixelMap | | tags :: [(String, String)] | tags for TIFF files
| pixels :: Map String (StorableArray (Int, Int) CFloat) | the actual pixels. if the image is an CIE one then channels will be "X", "Y", "Z" (and possibly more). If it's RGB, then it's "R" "G" "B" (and possibly more)
| width :: Int | the width of the image
| height :: Int | the height of the image
| colorspace :: ColourSpace | the color space of the image (see Data.Colour for more details)
|
|
|
|
|
|
Converting to and from this portable PixelMap format
| | Methods | | :: a | | -> PixelMap | Go to a pixel map from an arbitrary type.
|
| | | :: PixelMap | | -> a | Go from a pixel map to an arbitrary type.
|
|
| | Instances | |
|
|
|
Colourspace monikers representing different spaces in Data.Colour
| Constructors | Ciea | CIE XYZa format. Don't worry if you don't have an alpha channel, it will be filled in if you don't.
| Rgba (RGBSpace CFloat) | RGBa with a defined colourspace
| Srgba | SRGBa
| SrgbaLinear | Linear SRGBa colourspace
|
|
|
|
|
Read an arbitrary pixel
|
|
|
Read one channel from an arbitrary pixel
|
|
|
Write one channel of an arbitrary pixel
|
|
|
Usage: refChan image (0,0) "R" !/= 1.0
|
|
|
Write a colour to an arbitrary pixel
|
|
|
Usage: refPixel image (0,0) != opaque black
|
|
Produced by Haddock version 2.4.2 |