Exemple #1
0
 function applyFilter(Canvas $canvas)
 {
     $himage = $canvas->getImage();
     $m = array(array(1.0, 2.0, 1.0), array(2.0, 4.0, 2.0), array(1.0, 2.0, 1.0));
     $div = 16;
     $offs = 0;
     ImageUtils::imageconvolution($himage, $m, $div, $offs);
 }
Exemple #2
0
 function applyFilter(Canvas $canvas)
 {
     $himage = $canvas->getImage();
     ImageUtils::imageconvolution($himage, $this->matrix, $this->div, $this->offset);
 }