php如何判断图片颜色类型?实例教程
                        
                            时间:2021-07-01 10:21:17
                            帮助过:14人阅读
							                        
                     
                    
                    | $i = imagecreatefromjpeg("image.jpg");   for ($x=0;$xfor ($y=0;$y$rgb = imagecolorat($i,$x,$y);  $r   = ($rgb >> 16) & 0xFF;   $g   = ($rgb >>  & 0xFF;   $b   = $rgb & 0xFF;    $rTotal += $r;      $gTotal += $g;    $bTotal += $b;      $total++;      }      } // bbs.it-home.org$rAverage = round($rTotal/$total);     $gAverage = round($gTotal/$total);     $bAverage = round($bTotal/$total);   
 |