mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@262676 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
343f0775bd
commit
e9213453e6
1 changed files with 9 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<!-- $Revision: 1.14 $ -->
|
||||
<refentry xml:id="function.imageellipse" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>imageellipse</refname>
|
||||
|
@ -84,19 +84,22 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
|
||||
// create a blank image
|
||||
// Create a blank image.
|
||||
$image = imagecreatetruecolor(400, 300);
|
||||
|
||||
// fill the background color
|
||||
// Select the background color.
|
||||
$bg = imagecolorallocate($image, 0, 0, 0);
|
||||
|
||||
// choose a color for the ellipse
|
||||
// Fill the background with the color selected above.
|
||||
imagefill($image, 0, 0, $bg);
|
||||
|
||||
// Choose a color for the ellipse.
|
||||
$col_ellipse = imagecolorallocate($image, 255, 255, 255);
|
||||
|
||||
// draw the ellipse
|
||||
// Draw the ellipse.
|
||||
imageellipse($image, 200, 150, 300, 200, $col_ellipse);
|
||||
|
||||
// output the picture
|
||||
// Output the image.
|
||||
header("Content-type: image/png");
|
||||
imagepng($image);
|
||||
|
||||
|
|
Loading…
Reference in a new issue