【圖形圖像操作】同樣的代碼(9-1,9-2)復制到本地計算機上跑,火狐瀏覽器提示“存在錯誤而無法顯示”,什么鬼?
<?php
$img = imagecreatetruecolor(100, 100);
$red = imagecolorallocate($img, 0xFF, 0x00, 0x00);
//在這里使用imageline繪制線條
imageline($img, 0, 0, 100, 100, $red);
header("content-type: image/png");
imagepng($img);
imagedestroy($img);
2015-12-14