gegl-0.0.0.5: Haskell bindings to GEGL library

Safe HaskellNone
LanguageHaskell2010

GEGL.Buffer.BufferIterator

Description

Module for iterating over buffers

Synopsis

Documentation

gegl_buffer_iterator_new #

Arguments

:: GeglBuffer

Buffer to draw data from

-> GeglRectangle

Rectangle to iterate over

-> PixelFormat

Format to process pixel data in

-> GeglAccessMode

Access mode to pixel data

-> GeglAbyssPolicy

Abyss policy for pixel data

-> IO GeglBufferIterator 

Create a new iterator over a specified area on a buffer.

gegl_buffer_iterator_next #

Arguments

:: GeglBufferIterator

Iterator to fill with data

-> IO Bool 

This function fills the GeglBufferIterator with its appropriate data and returns True as long as there is something to iterate over. Upon returning False the iterator is invalidated.

data Pixel #

Data type to represent Pixels in iteration.

Constructors

Pixel 

Fields

data ComponentValue #

Container type for component values

Constructors

CVhalf CUShort 
CVfloat CFloat 
CVdouble CDouble 
CVu8 CUChar 
CVu15 CUShort 
CVu16 CUShort 
CVu32 CUInt 
CVa8 CUChar 
CVrgb24 CUChar 
CVrgba32 CUChar 

pixelMap #

Arguments

:: GeglBuffer

Terget buffer

-> GeglRectangle

Rectangle to iterate over

-> PixelFormat

Pixel format

-> GeglAccessMode

Access mode to pixel data

-> GeglAbyssPolicy

Abbyss policy for pixel data

-> (Pixel -> Pixel)

Function to apply to each pixel

-> IO () 

Simple iteration over a rectangle section of a buffer. Generates its own iterator.

pixelPoke #

Arguments

:: GeglBuffer

Terget buffer

-> GeglRectangle

Rectangle to iterate over

-> PixelFormat

Pixel format

-> GeglAccessMode

Access mode to pixel data

-> GeglAbyssPolicy

Abbyss policy for pixel data

-> ((Int, Int) -> Pixel)

Function to apply to each pixel

-> IO () 

Simple iteration over a rectangle section of a buffer. Generates its own iterator.