效果: PHP代码 <?php Header('Content-type: image/png;Charset:utf-8'); //声明图片 $im = imagecreate(400,200); //get color. $bg = imagecolorallocate($im,0,0,0); $red = imagecolorallocate($im,255,0,255); $white = imagecolorallocate($im,255,255,255); $arrowX = ar