用PHP实现图象锐化代码

2019-04-11 01:48:25于丽


   //echo "r:$r, g:$g, b:$b<br>";  

   if (($new_clr=imagecolorexact($im, $r, $g, $b))==-1)  

   $new_clr = Imagecolorallocate($im, $r, $g, $b);  

   $cnt++;  

   if ($new_clr==-1) die("color allocate faile at $x, $y ($cnt).");  

   imagesetpixel($im, $x, $y, $new_clr);  

   }  

  }
相关文章 大家在看