Here the code:
Code: Select all
<?php
error_reporting(E_ALL);
$im = imagecreatefrompng("image.png");
if (!$im)
die("error!");
for ($i = 0; $i < 20; $i++)
{
for ($j = 0; j < 10; $j++)
{
if (imagecolorat($im, $i, $j) != 0)
{
echo "$i $j\n";
}
}
}
imagedestroy($im);
?>Can you guys help me out?