imagecopy and imagecopymerge

Last post 05-25-2009 8:13 PM by soulblade. 0 replies.

Sort Posts:

  • imagecopy and imagecopymerge

    05-25-2009, 8:13 PM
    • Member
      55 point Member
    • soulblade
    • Member since 06-25-2006, 12:04 PM
    • Posts 20

    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

Page 1 of 1 (1 items)