Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Data.Bitmap.Base
Synopsis
- class (Num t, Storable t) => PixelComponent t
- data PixelComponentType
- pixelComponentSize :: PixelComponentType -> Int
- 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 :: BitmapClass bitmap => bitmap t -> Size
- bitmapNChannels :: BitmapClass bitmap => bitmap t -> NChn
- bitmapRowPadding :: BitmapClass bitmap => bitmap t -> Padding
- bitmapRowAlignment :: BitmapClass bitmap => bitmap t -> Alignment
- bitmapAspect :: (Fractional a, BitmapClass bitmap) => bitmap t -> a
- bitmapComponentType :: (BitmapClass bitmap, PixelComponent t) => bitmap t -> PixelComponentType
- bitmapComponentSizeInBytes :: (BitmapClass bitmap, PixelComponent t) => bitmap t -> Int
- bitmapPixelSizeInBytes :: (BitmapClass bitmap, PixelComponent t) => bitmap t -> Int
- bitmapPaddedRowSizeInBytes :: (BitmapClass bitmap, PixelComponent t) => bitmap t -> Int
- bitmapUnpaddedRowSizeInBytes :: (BitmapClass bitmap, PixelComponent t) => bitmap t -> Int
- bitmapSizeInBytes :: (BitmapClass bitmap, PixelComponent t) => bitmap t -> Int
- class BitmapClass b
- data BitmapChannel t = BmChn (Bitmap t) Int
Documentation
class (Num t, Storable t) => PixelComponent t Source #
Minimal complete definition
c_type, toFloat, fromFloat
data PixelComponentType Source #
Instances
Eq PixelComponentType Source # | |
Defined in Data.Bitmap.Internal Methods (==) :: PixelComponentType -> PixelComponentType -> Bool # (/=) :: PixelComponentType -> PixelComponentType -> Bool # | |
Show PixelComponentType Source # | |
Defined in Data.Bitmap.Internal Methods showsPrec :: Int -> PixelComponentType -> ShowS # show :: PixelComponentType -> String # showList :: [PixelComponentType] -> ShowS # |
pixelComponentType :: PixelComponent t => t -> PixelComponentType Source #
8-bit unsigned integer type
Instances
16-bit unsigned integer type
Instances
32-bit unsigned integer type
Instances
A bitmap.
Instances
bitmapSize :: BitmapClass bitmap => bitmap t -> Size Source #
bitmapNChannels :: BitmapClass bitmap => bitmap t -> NChn Source #
bitmapRowPadding :: BitmapClass bitmap => bitmap t -> Padding Source #
bitmapRowAlignment :: BitmapClass bitmap => bitmap t -> Alignment Source #
bitmapAspect :: (Fractional a, BitmapClass bitmap) => bitmap t -> a Source #
The width divided by the height.
bitmapComponentType :: (BitmapClass bitmap, PixelComponent t) => bitmap t -> PixelComponentType Source #
bitmapComponentSizeInBytes :: (BitmapClass bitmap, PixelComponent t) => bitmap t -> Int Source #
bitmapPixelSizeInBytes :: (BitmapClass bitmap, PixelComponent t) => bitmap t -> Int Source #
bitmapPaddedRowSizeInBytes :: (BitmapClass bitmap, PixelComponent t) => bitmap t -> Int Source #
bitmapUnpaddedRowSizeInBytes :: (BitmapClass bitmap, PixelComponent t) => bitmap t -> Int Source #
bitmapSizeInBytes :: (BitmapClass bitmap, PixelComponent t) => bitmap t -> Int Source #
class BitmapClass b Source #
A class so that using newtypes is convenient.
Minimal complete definition
underlyingBitmap