thosecars82 Posted December 14, 2009 Share Posted December 14, 2009 Hello I would like to ask you why I see this square in red color just in my local xampp installation. If I run the code in the remote server (http://www.arreglaordenador.com/numberimage2.php) I see the square in black color instead of red. Do you have any ideas? <?php $im = imagecreatetruecolor(100, 100); // sets background to red $red = imagecolorallocate($im, 255, 0, 0); imagefill($im, 0, 0, $red); header('Content-type: image/png'); imagepng($im); imagedestroy($im); ?> Thanks Link to comment https://forums.phpfreaks.com/topic/185101-background-color-imagefill/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.