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

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

WBOY
Release: 2016-06-06 20:22:44
Original
1247 people have browsed it

<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>
Copy after login
Copy after login

回复内容:

<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>
Copy after login
Copy after login
Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template