bitmap-0.0.2: A library for handling and manipulating bitmaps (rectangular pixel arrays).

Safe HaskellSafe-Infered

Data.Bitmap.Base

Synopsis

Documentation

type Size = (Int, Int)Source

type Offset = (Int, Int)Source

data Bitmap t Source

A bitmap.

bitmapSize :: BitmapClass bitmap => bitmap t -> SizeSource

bitmapNChannels :: BitmapClass bitmap => bitmap t -> NChnSource

bitmapRowPadding :: BitmapClass bitmap => bitmap t -> PaddingSource

bitmapAspect :: (Fractional a, BitmapClass bitmap) => bitmap t -> aSource

The width divided by the height.

data BitmapChannel t Source

Constructors

BmChn (Bitmap t) Int