Home  >  Article  >  Backend Development  >  画坐标时坐标上的点可以画出来吗?

画坐标时坐标上的点可以画出来吗?

WBOY
WBOYOriginal
2016-06-06 20:22:441207browse

<code> <?php $image=imagecreate(600,600);
    $backgroud=imagecolorallocate($image, 255, 255, 255);
    $bule=imagecolorallocate($image, 0, 0, 0);
    imageline($image,100,100,100,210,$bule);
    imageline($image,100,210,210,210,$bule);
    header("Content-type:image/gif");
    imagegif($image);
    imagedestory($image);
    ?></code>

回复内容:

<code> <?php $image=imagecreate(600,600);
    $backgroud=imagecolorallocate($image, 255, 255, 255);
    $bule=imagecolorallocate($image, 0, 0, 0);
    imageline($image,100,100,100,210,$bule);
    imageline($image,100,210,210,210,$bule);
    header("Content-type:image/gif");
    imagegif($image);
    imagedestory($image);
    ?></code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn