Forum Moderators: coopster
<?php
$im = ImageCreateFromPng("rockym.png");
$rgb = ImageColorAt($im, 100, 100);
$r = ($rgb >> 16) & 0xFF;
$g = ($rgb >> 8) & 0xFF;
$b = $rgb & 0xFF;
?>
but apparently, it gives me three different colors. Plus, would it still work if $im points to an image file?
Thanks.