Differences between revisions 1 and 2
Revision 1 as of 2008-09-01 10:06:10
Size: 902
Editor: klaus
Comment:
Revision 2 as of 2008-09-01 10:06:32
Size: 905
Editor: klaus
Comment:
Deletions are marked like this. Additions are marked like this.
Line 22: Line 22:
== Example ==  == Example ==
Line 24: Line 24:
see ColorMatrixFilter see also ColorMatrixFilter
Line 26: Line 26:
= PHP =  = PHP =

C

SWFFilter 
newConvolutionFilter(SWFFilterMatrix matrix /* matrix */, 
                     float divisor /* divisor applied to matrix */,
                     float bias /* matrix bias */,
                     SWFColor color /* default color */,
                     int flags /* FILTER_FLAG_CLAMP , FILTER_FLAG_PRESERVE_ALPHA */)

/*
 * create a new FilterMatrix (constructor)
 * This function creates a new SFWFilterMatrix. Only useful 
 * for creating SWFFilter objects.
 */
SWFFilterMatrix 
newSWFFilterMatrix(int cols /* number of cols */, 
                   int rows /* number of rows */, 
                   float *vals /* vals[cols * rows]. Will be copied */)

Example

see also ColorMatrixFilter

PHP

$f = new SWFFilter(SWFFILTER_TYPE_CONVOLUTION, $filterMatrix, $divisor, $bias, $colorHash, $flags);

see also ColorMatrixFilter

libming: ConvolutionFilter (last edited 2009-06-25 03:09:41 by localhost)