- Classes
- Namespaces
- Interfaces
- Traits
- Index

Class

# Imagine\Filter\Advanced\OnPixelBased

class OnPixelBased implements FilterInterface

The OnPixelBased takes a callable, and for each pixel, this callable is called with the image (\Imagine\Image\ImageInterface) and the current point (\Imagine\Image\Point)

## Methods

| __construct($callback) |
ImageInterface | apply(ImageInterface $image) Applies scheduled transformation to ImageInterface instance Returns processed ImageInterface instance |

## Details

###
at line 27
`public __construct($callback)`

#### Parameters

| $callback |

###
at line 44
`public ImageInterface apply(ImageInterface $image)`

Applies scheduled transformation to ImageInterface instance Returns processed ImageInterface instance

#### Parameters

ImageInterface | $image |

#### Return Value

ImageInterface |