The main type of this package, one that most functions work on, is Image.
Parameterized by the underlying pixel format it forms a rigid type. If you wish to store images of different or unknown pixel formats use DynamicImage.
Image is essentially a rectangular pixel buffer of specified width and height. The coordinates are assumed to start from the upper-left corner of the image, with the horizontal position first and vertical second.
Constructors
ImageimageWidth :: !IntWidth of the image in pixels
imageHeight :: !IntHeight of the image in pixels.
imageData :: Vector (PixelBaseComponent a)Image pixel data. To extract pixels at a given position you should use the helper functions.
Internally pixel data is stored as consecutively packed lines from top to bottom, scanned from left to right within individual lines, from first to last color component within each pixel.
Instances2Eq, NFData
(Eq (PixelBaseComponent a), Storable (PixelBaseComponent a)) => Eq (Image a)Defined in JuicyPixels-3.3.8 · Codec.Picture.TypesNFData (Image a)Defined in JuicyPixels-3.3.8 · Codec.Picture.Types