mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
* Fixed background usage on imagefilledpolygon and imagepolygon
* Added missing paragraph on imageftbbox git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@266127 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
05d99d2bb2
commit
9067127f31
3 changed files with 11 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.14 $ -->
|
||||
<!-- $Revision: 1.15 $ -->
|
||||
<refentry xml:id="function.imagefilledpolygon" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>imagefilledpolygon</refname>
|
||||
|
@ -80,10 +80,13 @@ $values = array(
|
|||
// create image
|
||||
$image = imagecreatetruecolor(250, 250);
|
||||
|
||||
// some colors
|
||||
// allocate colors
|
||||
$bg = imagecolorallocate($image, 200, 200, 200);
|
||||
$blue = imagecolorallocate($image, 0, 0, 255);
|
||||
|
||||
// fill the background
|
||||
imagefilledrectangle($image, 0, 0, 249, 249, $bg);
|
||||
|
||||
// draw a polygon
|
||||
imagefilledpolygon($image, $values, 6, $blue);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<refentry xml:id='function.imageftbbox' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>imageftbbox</refname>
|
||||
|
@ -15,6 +15,10 @@
|
|||
<methodparam><type>string</type><parameter>text</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>array</type><parameter>extrainfo</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function calculates and returns the bounding box in pixels
|
||||
for a FreeType text.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.16 $ -->
|
||||
<!-- $Revision: 1.17 $ -->
|
||||
<refentry xml:id="function.imagepolygon" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>imagepolygon</refname>
|
||||
|
@ -91,9 +91,6 @@
|
|||
// Create a blank image
|
||||
$image = imagecreatetruecolor(400, 300);
|
||||
|
||||
// Fill the background color
|
||||
$bg = imagecolorallocate($image, 0, 0, 0);
|
||||
|
||||
// Allocate a color for the polygon
|
||||
$col_poly = imagecolorallocate($image, 255, 255, 255);
|
||||
|
||||
|
|
Loading…
Reference in a new issue