\Kaloa\Image\FilterRescaleOpFilter

The class is modeled after java.awt.image.RescaleOp <http://docs.oracle.com/javase/7/docs/api/java/awt/image/RescaleOp.html>

Summary

Methods
Properties
Constants
__construct()
render()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(array  $scaleFactors, array  $offsets) 

Parameters

array $scaleFactors

Scaling factors for (r, g, b) components

array $offsets

Offsets for (r, g, b) components

render()

render(\Kaloa\Image\Image  $srcImg) : resource

For each pixel do: pixelVector = pixelVector * scaleFactors + offsets

Parameters

\Kaloa\Image\Image $srcImg

Returns

resource