Source: lesson_17_d2_arrow_h.php | Résultat |
<img src="../exercises/img_d2_arrow_h.php">
Fichier : img_d2_arrow_h.php
<?php header("Content-type: image/Jpeg"); // Create a new Image $im = ImageCreate(40,14); // Fill it with your favorite background color.. $backgroundColor = ImageColorAllocate($im, 232,232,192); $lineColor = ImageColorAllocate($im, 0,0,0); //ImageFill($im, 0, 0, $backgroundColor); imageline($im, 0, 7, 15, 7, $lineColor); imageline($im, 25, 7, 40, 7, $lineColor); imageline($im, 10, 3, 18, 7, $lineColor); imageline($im, 10, 11, 18, 7, $lineColor); imageline($im, 30 , 3, 22, 7, $lineColor); imageline($im, 30, 11, 22, 7, $lineColor); // Interlace the image.. Imageinterlace($im, 1); // Output the Image to the browser in jpeg format ImageJpeg($im); // Destroy the image. Imagedestroy($im); ?>
|
|