hi, im looking for an equivalent code for imagecopy and imagecopymerge (GD) for Bitmap class. Before this I used GD-Sharp (wrapper) but I didnt notice that the license is GPL. So now Im trying to use all Bitmap instead of using other external library.
1 for ($i = 0; $i < $radius; $i++) {
2 imagecopy ($imgBlur, $img, 0, 0, 1, 0, $w - 1, $h);
3 imagecopymerge ($imgBlur, $img, 1, 0, 0, 0, $w, $h, 50);
4 imagecopymerge ($imgBlur, $img, 0, 0, 0, 0, $w, $h, 50);
5 imagecopy ($imgCanvas, $imgBlur, 0, 0, 0, 0, $w, $h);
6
7 imagecopymerge ($imgBlur, $imgCanvas, 0, 0, 0, 1, $w, $h - 1, 33.33333 );
8 imagecopymerge ($imgBlur, $imgCanvas, 0, 1, 0, 0, $w, $h, 25);
9 }
thanks