5
if (!function_exists('imagecreatefromgd2')) die("skip gd extension not available\n");
9
$file = dirname(__FILE__) . '/src.gd2';
11
$im2 = imagecreatefromgd2($file);
12
echo 'test create from gd2: ';
13
echo imagecolorat($im2, 4,4) == 0xffffff ? 'ok' : 'failed';
16
$im3 = imagecreatefromgd2part($file, 4,4, 2,2);
17
echo 'test create from gd2 part: ';
18
echo imagecolorat($im2, 4,4) == 0xffffff ? 'ok' : 'failed';
22
test create from gd2: ok
23
test create from gd2 part: ok