bitmap-0.0.1: A library for handling and manipulating bitmaps.Source codeContentsIndex
Data.Bitmap.Base
Contents
Types
Synopsis
class (Num t, Storable t) => PixelComponent t
data PixelComponentType
= PctWord8
| PctWord16
| PctWord32
| PctFloat
pixelComponentSize :: PixelComponentType -> Int
pixelComponentType :: PixelComponent t => t -> PixelComponentType
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
bitmapAspect :: Fractional a => Bitmap t -> a
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
show/hide Instances
data PixelComponentType Source
Constructors
PctWord8
PctWord16
PctWord32
PctFloat
show/hide Instances
pixelComponentSize :: PixelComponentType -> IntSource
pixelComponentType :: PixelComponent t => t -> PixelComponentTypeSource
type Size = (Int, Int)Source
type Offset = (Int, Int)Source
type NChn = IntSource
type Alignment = IntSource
type Padding = IntSource
data Bitmap t Source
show/hide Instances
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)
bitmapAspect :: Fractional a => Bitmap t -> aSource
The width divided by the height.
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
Produced by Haddock version 2.4.1