16) & 0xFF; $g = ($rgb">
时间:2021-07-01 10:21:17 帮助过:41人阅读
$i = imagecreatefromjpeg("image.jpg"); for ($x=0;$x> 16) & 0xFF; $g = ($rgb >> & 0xFF; $b = $rgb & 0xFF; $rTotal += $r; $gTotal += $g; $bTotal += $b; $total++; } } $rAverage = round($rTotal/$total); $gAverage = round($gTotal/$total); $bAverage = round($bTotal/$total);
希望本文所述对大家的php程序设计有所帮助。