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

Data.Bitmap.Pure.Pixels

Description

Access to individual pixels. It isn't very efficient to handle bitmaps this way.

Synopsis

Documentation

data Bitmap1 t Source #

Newtypes for bitmaps with a fixed number of channels (components per pixel)

Instances

Instances details
BitmapClass Bitmap1 Source # 
Instance details

Defined in Data.Bitmap.Pure.Pixels

data Bitmap2 t Source #

Instances

Instances details
BitmapClass Bitmap2 Source # 
Instance details

Defined in Data.Bitmap.Pure.Pixels

data Bitmap3 t Source #

Instances

Instances details
BitmapClass Bitmap3 Source # 
Instance details

Defined in Data.Bitmap.Pure.Pixels

data Bitmap4 t Source #

Instances

Instances details
BitmapClass Bitmap4 Source # 
Instance details

Defined in Data.Bitmap.Pure.Pixels

unsafeReadComponent Source #

Arguments

:: PixelComponent t 
=> Bitmap t

the bitmap

-> Offset

position (x,y)

-> Int

channel index {0,1,...,nchannels-1}

-> t 

It is not very efficient to read/write lots of pixels this way.

unsafeReadComponents Source #

Arguments

:: PixelComponent t 
=> Bitmap t

the bitmap

-> Offset

position (x,y)

-> Int

channel index {0,1,...,nchannels-1}

-> Int

the number of components to read

-> [t] 

Please note that the component array to read shouldn't cross the boundary between lines.

unsafeReadPixel Source #

Arguments

:: PixelComponent t 
=> Bitmap t

the bitmap

-> Offset

position (x,y)

-> [t] 

unsafeReadPixel4 :: PixelComponent t => Bitmap4 t -> Offset -> (t, t, t, t) Source #