bitmap-0.0.1: A library for handling and manipulating bitmaps.
Source code
Contents
Index
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
Instances
PixelComponent
Float
PixelComponent
Word8
PixelComponent
Word16
PixelComponent
Word32
data
PixelComponentType
Source
Constructors
PctWord8
PctWord16
PctWord32
PctFloat
Instances
Show
PixelComponentType
pixelComponentSize
::
PixelComponentType
->
Int
Source
pixelComponentType
::
PixelComponent
t => t ->
PixelComponentType
Source
type
Size
= (
Int
,
Int
)
Source
type
Offset
= (
Int
,
Int
)
Source
type
NChn
=
Int
Source
type
Alignment
=
Int
Source
type
Padding
=
Int
Source
data
Bitmap
t
Source
Instances
Show
(
Bitmap
t)
bitmapSize
::
Bitmap
t ->
Size
Source
(width,height)
bitmapNChannels
::
Bitmap
t ->
NChn
Source
number of channels (eg. 3 for RGB)
bitmapRowPadding
::
Bitmap
t ->
Padding
Source
the padding of the rows, measured in
bytes
bitmapRowAlignment
::
Bitmap
t ->
Alignment
Source
the alignment of the rows (in bytes)
bitmapAspect
::
Fractional
a =>
Bitmap
t -> a
Source
The width divided by the height.
bitmapComponentSizeInBytes
::
forall
t.
PixelComponent
t =>
Bitmap
t ->
Int
Source
bitmapPixelSizeInBytes
::
PixelComponent
t =>
Bitmap
t ->
Int
Source
bitmapPaddedRowSizeInBytes
::
PixelComponent
t =>
Bitmap
t ->
Int
Source
bitmapUnpaddedRowSizeInBytes
::
forall
t.
PixelComponent
t =>
Bitmap
t ->
Int
Source
bitmapSizeInBytes
::
PixelComponent
t =>
Bitmap
t ->
Int
Source
Produced by
Haddock
version 2.4.1