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