<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_47392"> <div class="blockcode"> <div id="code_F99"><ol> <li> <li><?php<li>$i = imagecreatefromjpeg("image.jpg"); <li>for ($x=0;$x<imagesx($i);$x ) { <li>for ($y=0;$y<imagesy($i);$y ) { <li>$rgb = imagecolorat($i,$x,$y); <li>$r = ($rgb >> 16) & 0xFF; </li> <li>$g = ($rgb >> & 0xFF; </li> <li>$b = $rgb & 0xFF; </li> <li>$rTotal = $r; </li> <li>$gTotal = $g; </li> <li>$bTotal = $b; </li> <li>$total ; </li> <li>} </li> <li>} // bbs.it-home.org</li> <li>$rAverage = round($rTotal/$total); </li> <li>$gAverage = round($gTotal/$total); </li> <li>$bAverage = round($bTotal/$total); </li> </ol></div> <em onclick="copycode($('code_F99'));">复制代码</em> </div> </td></tr></table> <div id="comment_47392" class="cm"> </div> <div id="post_rate_div_47392"></div> <br><br>