Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module for iterating over buffers
- newtype GeglBufferIterator = GeglBufferIterator GeglBufferIteratorDummy
- gegl_buffer_iterator_new :: GeglBuffer -> GeglRectangle -> PixelFormat -> GeglAccessMode -> GeglAbyssPolicy -> IO GeglBufferIterator
- gegl_buffer_iterator_next :: GeglBufferIterator -> IO Bool
- data Pixel = Pixel {
- pixelX :: Int
- pixelY :: Int
- pixelData :: (ComponentValue, ComponentValue, ComponentValue, ComponentValue)
- data ComponentValue
- pixelMap :: GeglBuffer -> GeglRectangle -> PixelFormat -> GeglAccessMode -> GeglAbyssPolicy -> (Pixel -> Pixel) -> IO ()
- pixelPoke :: GeglBuffer -> GeglRectangle -> PixelFormat -> GeglAccessMode -> GeglAbyssPolicy -> ((Int, Int) -> Pixel) -> IO ()
Documentation
:: 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.
:: 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 type to represent Pixels in iteration.
Pixel | |
|
data ComponentValue #
Container type for component values
:: 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.
:: 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.