1.::SWF::FilterMatrix(3)User Contributed Perl Documentatio.n::SWF::FilterMatrix(3)
2
3
4
6 SWF::FilterMatrix - SWF FilterMatrix class
7
9 use SWF::FilterMatrix;
10 $valueref = [ 0.5, 0.4, 0.3, 0, 0,
11 0.5, 0.4, 0.3, 0, 0,
12 0.5, 0.4, 0.3, 0, 0,
13 0, 0, 0, 1, 0 ];
14 $filtermatrix = new SWF::FilterMatrix( 5, 4, $valueref );
15 $filter = SWF::Filter::newColorMatrixFilter( $filtermatrix );
16
18 SWF::FilterMatrix is a helper class useful for construction of some
19 SWF::Filter objects: ColorMatrix filter and Convolution filter.
20
22 new SWF::FilterMatrix($cols, $rows, $valueref)
23 The only method is a constructor for creation of a FilterMatrix
24 object. The object is controlled by the matrix data dimensions
25 (cols * rows) and the data values: a reference to an array of float
26 values. Note: constructing ColorMatrixFilter needs a 5*4 matrix.
27
29 developers of
30 ming.sourceforge.net
31
33 SWF, SWF::Filter, SWF::Blur, SWF::Shadow
34
35
36
37perl v5.30.0 2019-10-02 .::SWF::FilterMatrix(3)