I hear that some of PHP's image functions
don't work with TrueColor images, is this
true? Will I have problems with this:
function hexColor($color) {
return sprintf("%02X%02X%02X",$color[0],$color[1],$color[2]);
}
$imageInfo = getimagesize($image);
for (i=0; i < $imageInfo[0]; i++) {
for (j=0; j < $imageInfo[1]; j++ ){
// Get the pixel's color and
$pixelCol = imagecolorsforindex($image,
imagecolorat($image,i,j));
$pixelColor = hexColor($pixelCol);
// Now, do something else...with the
// $pixelColor variable
}
}