- class (Num t, Storable t) => PixelComponent t
- data PixelComponentType
- pixelComponentType :: PixelComponent t => t -> PixelComponentType
- data Word8
- data Word16
- data Word32
- type Size = (Int, Int)
- type Offset = (Int, Int)
- type NChn = Int
- type Alignment = Int
- type Padding = Int
- data Bitmap t
- bitmapSize :: Bitmap t -> Size
- bitmapNChannels :: Bitmap t -> NChn
- bitmapRowPadding :: Bitmap t -> Padding
- bitmapRowAlignment :: Bitmap t -> Alignment
- bitmapComponentSizeInBytes :: forall t. PixelComponent t => Bitmap t -> Int
- bitmapPixelSizeInBytes :: PixelComponent t => Bitmap t -> Int
- bitmapPaddedRowSizeInBytes :: PixelComponent t => Bitmap t -> Int
- bitmapUnpaddedRowSizeInBytes :: forall t. PixelComponent t => Bitmap t -> Int
- bitmapSizeInBytes :: PixelComponent t => Bitmap t -> Int
Types
class (Num t, Storable t) => PixelComponent t Source
pixelComponentType :: PixelComponent t => t -> PixelComponentTypeSource
data Word8
8-bit unsigned integer type
data Word16
16-bit unsigned integer type
data Word32
32-bit unsigned integer type
bitmapSize :: Bitmap t -> SizeSource
(width,height)
bitmapNChannels :: Bitmap t -> NChnSource
number of channels (eg. 3 for RGB)
bitmapRowPadding :: Bitmap t -> PaddingSource
the padding of the rows, measured in bytes
bitmapRowAlignment :: Bitmap t -> AlignmentSource
the alignment of the rows (in bytes)
bitmapComponentSizeInBytes :: forall t. PixelComponent t => Bitmap t -> IntSource
bitmapPixelSizeInBytes :: PixelComponent t => Bitmap t -> IntSource
bitmapPaddedRowSizeInBytes :: PixelComponent t => Bitmap t -> IntSource
bitmapUnpaddedRowSizeInBytes :: forall t. PixelComponent t => Bitmap t -> IntSource
bitmapSizeInBytes :: PixelComponent t => Bitmap t -> IntSource