SWF::FilterMatrix3pm
Swf filtermatrix class
Usage
use SWF::FilterMatrix;$valueref = [ 0.5, 0.4, 0.3, 0, 0,0.5, 0.4, 0.3, 0, 0,0.5, 0.4, 0.3, 0, 0,0, 0, 0, 1, 0 ];$filtermatrix = new SWF::FilterMatrix( 5, 4, $valueref );$filter = SWF::Filter::newColorMatrixFilter( $filtermatrix );
Overview
SWF::FilterMatrix is a helper class useful for construction of some SWF::Filter objects: ColorMatrix filter and Convolution filter.
Methods
- new SWF::FilterMatrix($cols, $rows, $valueref)
-
The only method is a constructor for creation of a FilterMatrix object. The object is controlled by the matrix data dimensions (cols * rows) and the data values: a reference to an array of float values. Note: constructing ColorMatrixFilter needs a 5*4 matrix.
Releases
2 releases since Debian 6.0 (Squeeze); the text changed 1 time.