GD works - PNG not
| From: | Frederico Gomes Barbosa | Date: | Tue, 26 Nov 2002 21:02:51 +0000 |
| Subject: | GD works - PNG not | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-126168@lists.php.net to get a copy of this message | ||
Hi
I´m using php version 4.2.3 with GD version 2.0.7 (with JPG and PNG Support enabled). When i
try to a specific color in my map, nothing happenes. Why?
<?php
header("Content-type: image/png");
$im = ImageCreatefrompng ('mapa2.png');
$origem = imagecolorexact($im, 255, 255, 0);
ImageColorSet($im, $origem, 0, 0, 0);
$destino = imagecolorexact($im, 0, 255, 0);
ImageColorSet($im, $destino, 0, 0, 0);
Imagepng($im);
imageDestroy($im);
?>
[]´s
Fred
Goiânia - Brasil