svn: /phpdoc/de/trunk/reference/image/functions/ imagedashedline.xml imagefill.xml imagefilledpolygon.xml imagefilledrectangle.xml imagefilltoborder.xml imagefontheight.xml imagefontwidth.xml
[email protected] (Christoph Michael Becker)
| Newsgroups | php.doc.de |
|---|---|
| Message-ID | <[email protected]> |
cmb Fri, 30 Mar 2018 22:47:22 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=344593
Log:
Sync with EN
Changed paths:
U phpdoc/de/trunk/reference/image/functions/imagedashedline.xml
U phpdoc/de/trunk/reference/image/functions/imagefill.xml
U phpdoc/de/trunk/reference/image/functions/imagefilledpolygon.xml
U phpdoc/de/trunk/reference/image/functions/imagefilledrectangle.xml
U phpdoc/de/trunk/reference/image/functions/imagefilltoborder.xml
U phpdoc/de/trunk/reference/image/functions/imagefontheight.xml
U phpdoc/de/trunk/reference/image/functions/imagefontwidth.xml
svn-diffs-344593.txt
(text/x-diff, 33.9 KB)
Modified: phpdoc/de/trunk/reference/image/functions/imagedashedline.xml
===================================================================
--- phpdoc/de/trunk/reference/image/functions/imagedashedline.xml 2018-03-30 21:39:28 UTC (rev 344592)
+++ phpdoc/de/trunk/reference/image/functions/imagedashedline.xml 2018-03-30 22:47:22 UTC (rev 344593)
@@ -1,39 +1,167 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Revision$ -->
-<!-- splitted from ./de/functions/image.xml, last change in rev 1.2 -->
-<!-- last change to 'imagedashedline' in en/ tree in rev 1.2 -->
-<!-- EN-Revision: n/a Maintainer: nobody Status: ready -->
-<!-- OLD-Revision: 1.26/EN.1.2 -->
- <refentry xml:id="function.imagedashedline" xmlns="http://docbook.org/ns/docbook">
- <refnamediv>
- <refname>imagedashedline</refname>
- <refpurpose>Zeichnen einer gestrichelten Linie</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Beschreibung:</title>
- <methodsynopsis>
- <type>int</type><methodname>imagedashedline</methodname>
- <methodparam><type>resource</type><parameter>im</parameter></methodparam>
- <methodparam><type>int</type><parameter>x1</parameter></methodparam>
- <methodparam><type>int</type><parameter>y1</parameter></methodparam>
- <methodparam><type>int</type><parameter>x2</parameter></methodparam>
- <methodparam><type>int</type><parameter>y2</parameter></methodparam>
- <methodparam><type>int</type><parameter>col</parameter></methodparam>
- </methodsynopsis>
- <para>
- <function>ImageDashedLine</function> zeichnet eine gestrichelte
- Linie, beginnend am Punkt <parameter>x1</parameter>,
- <parameter>y1</parameter> bis zum Punkt
- <parameter>x2</parameter>, <parameter>y2</parameter> (oben
- links ist 0, 0) in das Bild image <parameter>im</parameter> mit
- der Farbe <parameter>col</parameter>.
- </para>
- <para>
- Siehe auch <function>imageline</function>.
- </para>
- </refsect1>
- </refentry>
+<!-- EN-Revision: 344592 Maintainer: nobody Status: ready -->
+<refentry xml:id="function.imagedashedline" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>imagedashedline</refname>
+ <refpurpose>Zeichne eine gestrichelte Linie</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>int</type><methodname>imagedashedline</methodname>
+ <methodparam><type>resource</type><parameter>image</parameter></methodparam>
+ <methodparam><type>int</type><parameter>x1</parameter></methodparam>
+ <methodparam><type>int</type><parameter>y1</parameter></methodparam>
+ <methodparam><type>int</type><parameter>x2</parameter></methodparam>
+ <methodparam><type>int</type><parameter>y2</parameter></methodparam>
+ <methodparam><type>int</type><parameter>color</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ Diese Funktion ist missbilligt. Statt dessen sollte eine Kombination von
+ <function>imagesetstyle</function> und <function>imageline</function>
+ verwendet werden.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ &gd.image.description;
+ <varlistentry>
+ <term><parameter>x1</parameter></term>
+ <listitem>
+ <para>
+ x-Koordinate des oberen linken Punktes.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>y1</parameter></term>
+ <listitem>
+ <para>
+ y-Koordinate des oberen linken Punktes. 0,0 ist die obere linke Ecke des
+ Bildes.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>x2</parameter></term>
+ <listitem>
+ <para>
+ x-Koordinate des unteren rechtes Punktes.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>y2</parameter></term>
+ <listitem>
+ <para>
+ y-Koordinate des unteren rechten Punktes.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>color</parameter></term>
+ <listitem>
+ <para>
+ Die Füllfarbe. Eine Farbkennung, die mit
+ <function>imagecolorallocate</function> erzeugt wurde.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ &return.success;
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title><function>imagedashedline</function> Beispiel</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// Erzeuge ein 100x100 Bild
+$im = imagecreatetruecolor(100, 100);
+$white = imagecolorallocate($im, 0xFF, 0xFF, 0xFF);
+
+// Zeichne die vertikale gestrichelte Linie
+imagedashedline($im, 50, 25, 50, 75, $white);
+
+// Speichere das Bild
+imagepng($im, './dashedline.png');
+imagedestroy($im);
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <mediaobject>
+ <alt>Ausgabe des Beispiels : imagedashedline()</alt>
+ <imageobject>
+ <imagedata fileref="en/reference/image/figures/imagedashedline.png"/>
+ </imageobject>
+ </mediaobject>
+ </example>
+ <example>
+ <title>Alternative zu <function>imagedashedline</function></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// Erzeuge ein 100x100 Bild
+$im = imagecreatetruecolor(100, 100);
+$white = imagecolorallocate($im, 0xFF, 0xFF, 0xFF);
+
+// Definiere den gewünschten Stil: die ersten 4 Pixel sind weiß, und die
+// nächsten 4 sind transparent. Dies erzeugt den Strichel-Effekt
+$style = Array(
+ $white,
+ $white,
+ $white,
+ $white,
+ IMG_COLOR_TRANSPARENT,
+ IMG_COLOR_TRANSPARENT,
+ IMG_COLOR_TRANSPARENT,
+ IMG_COLOR_TRANSPARENT
+ );
+
+imagesetstyle($im, $style);
+
+// Zeichne die vertikale gestrichelte Linie
+imageline($im, 50, 25, 50, 75, IMG_COLOR_STYLED);
+
+// Speichere das Bild
+imagepng($im, './imageline.png');
+imagedestroy($im);
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>imagesetstyle</function></member>
+ <member><function>imageline</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
+
+</refentry>
+
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/de/trunk/reference/image/functions/imagefill.xml
===================================================================
--- phpdoc/de/trunk/reference/image/functions/imagefill.xml 2018-03-30 21:39:28 UTC (rev 344592)
+++ phpdoc/de/trunk/reference/image/functions/imagefill.xml 2018-03-30 22:47:22 UTC (rev 344593)
@@ -1,32 +1,113 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Revision$ -->
-<!-- splitted from ./de/functions/image.xml, last change in rev 1.2 -->
-<!-- last change to 'imagefill' in en/ tree in rev 1.2 -->
-<!-- EN-Revision: n/a Maintainer: nobody Status: ready -->
-<!-- OLD-Revision: 1.26/EN.1.2 -->
- <refentry xml:id="function.imagefill" xmlns="http://docbook.org/ns/docbook">
- <refnamediv>
- <refname>imagefill</refname>
- <refpurpose>Füllen mit Farbe ("flood fill")</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Beschreibung:</title>
- <methodsynopsis>
- <type>int</type><methodname>imagefill</methodname>
- <methodparam><type>resource</type><parameter>im</parameter></methodparam>
- <methodparam><type>int</type><parameter>x</parameter></methodparam>
- <methodparam><type>int</type><parameter>y</parameter></methodparam>
- <methodparam><type>int</type><parameter>col</parameter></methodparam>
- </methodsynopsis>
- <para>
- <function>ImageFill</function> bewirkt das Füllen eines Bildes
- beginnend bei der Koordinate <parameter>x</parameter>,
- <parameter>y</parameter> (oben links ist 0, 0) mit der Farbe
- <parameter>col</parameter> im Bild <parameter>im</parameter>.
- </para>
- </refsect1>
- </refentry>
+<!-- EN-Revision: 297028 Maintainer: nobody Status: ready -->
+<refentry xml:id="function.imagefill" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>imagefill</refname>
+ <refpurpose>Flutfüllung</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>int</type><methodname>imagefill</methodname>
+ <methodparam><type>resource</type><parameter>image</parameter></methodparam>
+ <methodparam><type>int</type><parameter>x</parameter></methodparam>
+ <methodparam><type>int</type><parameter>y</parameter></methodparam>
+ <methodparam><type>int</type><parameter>color</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ Führt eine Flutfüllung beginnend an der angegebenen Koordinate (oben links
+ ist 0,0) mit der angegebenen <parameter>color</parameter> im
+ <parameter>image</parameter> durch.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ &gd.image.description;
+ <varlistentry>
+ <term><parameter>x</parameter></term>
+ <listitem>
+ <para>
+ x-Koordinate des Anfangspunkts.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>y</parameter></term>
+ <listitem>
+ <para>
+ y-Koordinate des Anfangspunkts.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>color</parameter></term>
+ <listitem>
+ <para>
+ Die Füllfarbe. Eine Farbkennung, die mit
+ <function>imagecolorallocate</function> erzeugt wurde.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ &return.success;
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title><function>imagefill</function> Beispiel</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+$im = imagecreatetruecolor(100, 100);
+
+// Färbt den Hintergrund rot
+$red = imagecolorallocate($im, 255, 0, 0);
+imagefill($im, 0, 0, $red);
+
+header('Content-type: image/png');
+imagepng($im);
+imagedestroy($im);
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <mediaobject>
+ <alt>Ausgabe des Beispiels : imagefill()</alt>
+ <imageobject>
+ <imagedata fileref="en/reference/image/figures/imagefill.png"/>
+ </imageobject>
+ </mediaobject>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>imagecolorallocate</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
+
+</refentry>
+
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/de/trunk/reference/image/functions/imagefilledpolygon.xml
===================================================================
--- phpdoc/de/trunk/reference/image/functions/imagefilledpolygon.xml 2018-03-30 21:39:28 UTC (rev 344592)
+++ phpdoc/de/trunk/reference/image/functions/imagefilledpolygon.xml 2018-03-30 22:47:22 UTC (rev 344593)
@@ -1,35 +1,130 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Revision$ -->
-<!-- splitted from ./de/functions/image.xml, last change in rev 1.2 -->
-<!-- last change to 'imagefilledpolygon' in en/ tree in rev 1.2 -->
-<!-- EN-Revision: n/a Maintainer: nobody Status: ready -->
-<!-- OLD-Revision: 1.26/EN.1.2 -->
- <refentry xml:id="function.imagefilledpolygon" xmlns="http://docbook.org/ns/docbook">
- <refnamediv>
- <refname>imagefilledpolygon</refname>
- <refpurpose>Zeichnet ein gefülltes Vieleck (Polygon)</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Beschreibung:</title>
- <methodsynopsis>
- <type>bool</type><methodname>imagefilledpolygon</methodname>
- <methodparam><type>resource</type><parameter>im</parameter></methodparam>
- <methodparam><type>array</type><parameter>points</parameter></methodparam>
- <methodparam><type>int</type><parameter>num_points</parameter></methodparam>
- <methodparam><type>int</type><parameter>col</parameter></methodparam>
- </methodsynopsis>
- <para>
- <function>ImageFilledPolygon</function> erzeugt ein Vieleck
- im Bild <parameter>im</parameter>, gefüllt mit der Farbe
- <parameter>col</parameter>. <parameter>Points</parameter>
- ist ein PHP-Array, das die Eckpunkte des Vielecks enthält.
- Points[0] ist die X-Koordinate (x0), points[1] die Y-Koordinate
- (y0) des ersten Eckunktes. Points[2] ist x1, points[3] = y1 usw.
- <parameter>Num_points</parameter> enthält die Anzahl der Punkte.
- </para>
- </refsect1>
- </refentry>
+<!-- EN-Revision: 340500 Maintainer: nobody Status: ready -->
+<refentry xml:id="function.imagefilledpolygon" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>imagefilledpolygon</refname>
+ <refpurpose>Zeichne ein gefülltes Polygon</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>bool</type><methodname>imagefilledpolygon</methodname>
+ <methodparam><type>resource</type><parameter>image</parameter></methodparam>
+ <methodparam><type>array</type><parameter>points</parameter></methodparam>
+ <methodparam><type>int</type><parameter>num_points</parameter></methodparam>
+ <methodparam><type>int</type><parameter>color</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ <function>imagefilledpolygon</function> erzeugt ein gefülltes Polygon
+ im angegebenen <parameter>image</parameter>.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ &gd.image.description;
+ <varlistentry>
+ <term><parameter>points</parameter></term>
+ <listitem>
+ <para>
+ Ein Array, das die <literal>x</literal> und <literal>y</literal>
+ Koordinaten der aufeinanderfolgenden Polygon-Eckpunkte enthält.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>num_points</parameter></term>
+ <listitem>
+ <para>
+ Die Anzahl der Eckpunkte, die wenigstens 3 sein muss.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>color</parameter></term>
+ <listitem>
+ <para>
+ Eine Farbkennung, die mit <function>imagecolorallocate</function> erzeugt
+ wurde.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ &return.success;
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title><function>imagefilledpolygon</function> Beispiel</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// initialisiere das Array der Polygon-Punkte
+$values = array(
+ 40, 50, // Point 1 (x, y)
+ 20, 240, // Point 2 (x, y)
+ 60, 60, // Point 3 (x, y)
+ 240, 20, // Point 4 (x, y)
+ 50, 40, // Point 5 (x, y)
+ 10, 10 // Point 6 (x, y)
+ );
+
+// Erzeuge das Bild
+$image = imagecreatetruecolor(250, 250);
+
+// Alloziere Farben
+$bg = imagecolorallocate($image, 0, 0, 0);
+$blue = imagecolorallocate($image, 0, 0, 255);
+
+// Fülle den Hintergrund
+imagefilledrectangle($image, 0, 0, 249, 249, $bg);
+
+// Zeichne ein Polygon
+imagefilledpolygon($image, $values, 6, $blue);
+
+// Gib das Bild aus
+header('Content-type: image/png');
+imagepng($image);
+imagedestroy($image);
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <mediaobject>
+ <alt>Ausgabe des Beispiels : imagefilledpolygon()</alt>
+ <imageobject>
+ <imagedata fileref="en/reference/image/figures/imagefilledpolygon.png"/>
+ </imageobject>
+ </mediaobject>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>imagepolygon</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
+
+</refentry>
+
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/de/trunk/reference/image/functions/imagefilledrectangle.xml
===================================================================
--- phpdoc/de/trunk/reference/image/functions/imagefilledrectangle.xml 2018-03-30 21:39:28 UTC (rev 344592)
+++ phpdoc/de/trunk/reference/image/functions/imagefilledrectangle.xml 2018-03-30 22:47:22 UTC (rev 344593)
@@ -1,38 +1,122 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Revision$ -->
-<!-- splitted from ./de/functions/image.xml, last change in rev 1.2 -->
-<!-- last change to 'imagefilledrectangle' in en/ tree in rev 1.2 -->
-<!-- EN-Revision: n/a Maintainer: nobody Status: ready -->
-<!-- OLD-Revision: 1.26/EN.1.2 -->
- <refentry xml:id="function.imagefilledrectangle" xmlns="http://docbook.org/ns/docbook">
- <refnamediv>
- <refname>imagefilledrectangle</refname>
- <refpurpose>Zeichnet ein gefülltes Rechteck</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Beschreibung:</title>
- <methodsynopsis>
- <type>int</type><methodname>imagefilledrectangle</methodname>
- <methodparam><type>resource</type><parameter>im</parameter></methodparam>
- <methodparam><type>int</type><parameter>x1</parameter></methodparam>
- <methodparam><type>int</type><parameter>y1</parameter></methodparam>
- <methodparam><type>int</type><parameter>x2</parameter></methodparam>
- <methodparam><type>int</type><parameter>y2</parameter></methodparam>
- <methodparam><type>int</type><parameter>col</parameter></methodparam>
- </methodsynopsis>
- <para>
- <function>ImageFilledRectangle</function> erzeugt ein mit der
- Farbe <parameter>col</parameter> gefülltes Rechteck innerhalb des
- Bildes <parameter>im</parameter>. Die obere linke Eck-Koordinate
- wird mittels <parameter>x1</parameter> und
- <parameter>y1</parameter>, die untere rechte Eck-Koordinate
- mittels <parameter>x2</parameter> und <parameter>y2</parameter>
- definiert. 0, 0 ist dabei die linke obere Ecke des Bildes
- <parameter>im</parameter>.
- </para>
- </refsect1>
- </refentry>
+<!-- EN-Revision: 297028 Maintainer: nobody Status: ready -->
+<refentry xml:id="function.imagefilledrectangle" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>imagefilledrectangle</refname>
+ <refpurpose>Zeichne ein gefülltes Rechteck</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>int</type><methodname>imagefilledrectangle</methodname>
+ <methodparam><type>resource</type><parameter>image</parameter></methodparam>
+ <methodparam><type>int</type><parameter>x1</parameter></methodparam>
+ <methodparam><type>int</type><parameter>y1</parameter></methodparam>
+ <methodparam><type>int</type><parameter>x2</parameter></methodparam>
+ <methodparam><type>int</type><parameter>y2</parameter></methodparam>
+ <methodparam><type>int</type><parameter>color</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ Erzeugt ein mit der Farbe <parameter>color</parameter> gefülltes Rechteck im
+ angegebenen <parameter>image</parameter>, das sich von Punkt 1 bis zu Punkt 2
+ erstreckt. 0,0 ist die obere linke Ecke des Bildes.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ &gd.image.description;
+ <varlistentry>
+ <term><parameter>x1</parameter></term>
+ <listitem>
+ <para>
+ x-Koordinate von Punkt 1.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>y1</parameter></term>
+ <listitem>
+ <para>
+ y-Koordinate von Punkt 1.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>x2</parameter></term>
+ <listitem>
+ <para>
+ x-Koordinate von Punkt 2.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>y2</parameter></term>
+ <listitem>
+ <para>
+ y-Koordinate von Punkt 2.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>color</parameter></term>
+ <listitem>
+ <para>
+ Die Füllfarbe. Eine Farbkennung, die mit
+ <function>imagecolorallocate</function> erzeugt wurde.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ &return.success;
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title><function>imagefilledrectangle</function> Verwendung</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// Erzeuge ein 55x30 Bild
+$im = imagecreatetruecolor(55, 30);
+$white = imagecolorallocate($im, 255, 255, 255);
+
+// Zeichne ein weißes Rechteck
+imagefilledrectangle($im, 4, 4, 50, 25, $white);
+
+// Speichere das Bild
+imagepng($im, './imagefilledrectangle.png');
+imagedestroy($im);
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <mediaobject>
+ <alt>Ausgabe des Beispiels : imagefilledrectangle()</alt>
+ <imageobject>
+ <imagedata fileref="en/reference/image/figures/imagefilledrectangle.png"/>
+ </imageobject>
+ </mediaobject>
+ </example>
+ </para>
+ </refsect1>
+
+</refentry>
+
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/de/trunk/reference/image/functions/imagefilltoborder.xml
===================================================================
--- phpdoc/de/trunk/reference/image/functions/imagefilltoborder.xml 2018-03-30 21:39:28 UTC (rev 344592)
+++ phpdoc/de/trunk/reference/image/functions/imagefilltoborder.xml 2018-03-30 22:47:22 UTC (rev 344593)
@@ -1,37 +1,126 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Revision$ -->
-<!-- splitted from ./de/functions/image.xml, last change in rev 1.2 -->
-<!-- last change to 'imagefilltoborder' in en/ tree in rev 1.2 -->
-<!-- EN-Revision: n/a Maintainer: nobody Status: ready -->
-<!-- OLD-Revision: 1.26/EN.1.2 -->
- <refentry xml:id="function.imagefilltoborder" xmlns="http://docbook.org/ns/docbook">
- <refnamediv>
- <refname>imagefilltoborder</refname>
- <refpurpose>
- Flächen-Farbfüllung ("flood fill") mit einer angegebenen Farbe
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>Beschreibung:</title>
- <methodsynopsis>
- <type>int</type><methodname>imagefilltoborder</methodname>
- <methodparam><type>resource</type><parameter>im</parameter></methodparam>
- <methodparam><type>int</type><parameter>x</parameter></methodparam>
- <methodparam><type>int</type><parameter>y</parameter></methodparam>
- <methodparam><type>int</type><parameter>border</parameter></methodparam>
- <methodparam><type>int</type><parameter>col</parameter></methodparam>
- </methodsynopsis>
- <para>
- <function>ImageFillToBorder</function> bewirkt eine Farb-Füllung
- in einem Bereich, dessen Grenze durch die Farbe in
- <parameter>border</parameter> definiert wird. Der Startpunkt
- wird durch <parameter>x</parameter> und <parameter>y</parameter>
- angegeben (oben links ist 0, 0). Der Bereich wird gefüllt mit
- der Farbe <parameter>col</parameter>.
- </para>
- </refsect1>
- </refentry>
+<!-- EN-Revision: 297028 Maintainer: nobody Status: ready -->
+<refentry xml:id="function.imagefilltoborder" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>imagefilltoborder</refname>
+ <refpurpose>
+ Flutfüllung bis zur angegebenen Farbe
+ </refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>int</type><methodname>imagefilltoborder</methodname>
+ <methodparam><type>resource</type><parameter>image</parameter></methodparam>
+ <methodparam><type>int</type><parameter>x</parameter></methodparam>
+ <methodparam><type>int</type><parameter>y</parameter></methodparam>
+ <methodparam><type>int</type><parameter>border</parameter></methodparam>
+ <methodparam><type>int</type><parameter>color</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ <function>imagefilltoborder</function> bewirkt eine Flutfüllung in einem
+ Bereich, dessen Grenze durch die Farbe in <parameter>border</parameter>
+ definiert wird. Der Startpunkt wird durch <parameter>x</parameter> und
+ <parameter>y</parameter> angegeben (oben links ist 0, 0). Der Bereich wird
+ gefüllt mit der Farbe <parameter>color</parameter>.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ &gd.image.description;
+ <varlistentry>
+ <term><parameter>x</parameter></term>
+ <listitem>
+ <para>
+ x-Koordinate des Anfangspunkts.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>y</parameter></term>
+ <listitem>
+ <para>
+ y-Koordinate des Anfangspunkts.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>border</parameter></term>
+ <listitem>
+ <para>
+ Die Grenzfarbe. Eine Farbkennung, die mit
+ <function>imagecolorallocate</function> erzeugt wurde.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>color</parameter></term>
+ <listitem>
+ <para>
+ Die Füllfarbe. Eine Farbkennung, die mit
+ <function>imagecolorallocate</function> erzeugt wurde.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ &return.success;
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>Füllen einer Ellipse mit einer Farbe</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// Erzeuge die Bildressource; definiere den Hintergrund als weiß
+$im = imagecreatetruecolor(100, 100);
+imagefilledrectangle($im, 0, 0, 100, 100, imagecolorallocate($im, 255, 255, 255));
+
+// Zeichne eine auszufüllende Ellipse mit einem schwarzen Rand
+imageellipse($im, 50, 50, 50, 50, imagecolorallocate($im, 0, 0, 0));
+
+// Definiere die Rand- und Füllfarbe
+$border = imagecolorallocate($im, 0, 0, 0);
+$fill = imagecolorallocate($im, 255, 0, 0);
+
+// Fülle die Auswahl
+imagefilltoborder($im, 50, 50, $border, $fill);
+
+// Ausgeben und Speicher freigeben
+header('Content-type: image/png');
+imagepng($im);
+imagedestroy($im);
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <mediaobject>
+ <alt>Ausgabe des Beispiels : Füllen einer Ellipse mit einer Farbe</alt>
+ <imageobject>
+ <imagedata fileref="en/reference/image/figures/imagefilltoborder.png" />
+ </imageobject>
+ </mediaobject>
+ </example>
+ </para>
+ </refsect1>
+
+</refentry>
+
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/de/trunk/reference/image/functions/imagefontheight.xml
===================================================================
--- phpdoc/de/trunk/reference/image/functions/imagefontheight.xml 2018-03-30 21:39:28 UTC (rev 344592)
+++ phpdoc/de/trunk/reference/image/functions/imagefontheight.xml 2018-03-30 22:47:22 UTC (rev 344593)
@@ -1,31 +1,93 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Revision$ -->
-<!-- splitted from ./de/functions/image.xml, last change in rev 1.2 -->
-<!-- last change to 'imagefontheight' in en/ tree in rev 1.2 -->
-<!-- EN-Revision: n/a Maintainer: nobody Status: ready -->
-<!-- OLD-Revision: 1.26/EN.1.2 -->
- <refentry xml:id="function.imagefontheight" xmlns="http://docbook.org/ns/docbook">
- <refnamediv>
- <refname>imagefontheight</refname>
- <refpurpose>Ermittelt die Font-Höhe</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Beschreibung:</title>
- <methodsynopsis>
- <type>int</type><methodname>imagefontheight</methodname>
- <methodparam><type>int</type><parameter>font</parameter></methodparam>
- </methodsynopsis>
- <para>
- Ermittelt die Höhe eines Zeichens (in Pixel) im angegebenen
- Font.
- </para>
- <para>
- Siehe auch <function>imagefontwidth</function> und
- <function>imageloadfont</function>.
- </para>
- </refsect1>
- </refentry>
+<!-- EN-Revision: 328184 Maintainer: nobody Status: ready -->
+<refentry xml:id="function.imagefontheight" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>imagefontheight</refname>
+ <refpurpose>Ermittle die Höhe einer Schriftart</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>int</type><methodname>imagefontheight</methodname>
+ <methodparam><type>int</type><parameter>font</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ Gibt die Höhe eines Zeichens (in Pixel) in der angegebenen Schriftart zurück.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ &gd.font.description;
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Gibt die Höhe der Schriftart in Pixel zurück.
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>Verwendung von <function>imagefontheight</function> mit integrierten Schriftarten</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+echo 'Höhe der Schriftart: ' . imagefontheight(4);
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+Höhe der Schriftart: 16
+]]>
+ </screen>
+ </example>
+ <example>
+ <title>Verwendung von <function>imagefontheight</function> mit <function>imageloadfont</function></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// Lade eine .gdf Schriftart
+$font = imageloadfont('anonymous.gdf');
+
+echo 'Höhe der Schriftart: ' . imagefontheight($font);
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+Höhe der Schriftart: 43
+]]>
+ </screen>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>imagefontwidth</function></member>
+ <member><function>imageloadfont</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
+
+</refentry>
+
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/de/trunk/reference/image/functions/imagefontwidth.xml
===================================================================
--- phpdoc/de/trunk/reference/image/functions/imagefontwidth.xml 2018-03-30 21:39:28 UTC (rev 344592)
+++ phpdoc/de/trunk/reference/image/functions/imagefontwidth.xml 2018-03-30 22:47:22 UTC (rev 344593)
@@ -1,30 +1,94 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Revision$ -->
-<!-- splitted from ./de/functions/image.xml, last change in rev 1.2 -->
-<!-- last change to 'imagefontwidth' in en/ tree in rev 1.2 -->
-<!-- EN-Revision: n/a Maintainer: nobody Status: ready -->
-<!-- OLD-Revision: 1.26/EN.1.2 -->
- <refentry xml:id="function.imagefontwidth" xmlns="http://docbook.org/ns/docbook">
- <refnamediv>
- <refname>imagefontwidth</refname>
- <refpurpose>Ermittelt die Font-Breite</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Beschreibung:</title>
- <methodsynopsis>
- <type>int</type><methodname>imagefontwidth</methodname>
- <methodparam><type>int</type><parameter>font</parameter></methodparam>
- </methodsynopsis>
- <para>
- Gibt die Zeichenbreite des angegebenen Fonts in Pixeln zurück.
- </para>
- <para>
- Siehe auch <function>imagefontheight</function> und
- <function>imageloadfont</function>.
- </para>
- </refsect1>
- </refentry>
+<!-- EN-Revision: 328184 Maintainer: nobody Status: ready -->
+<refentry xml:id="function.imagefontwidth" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>imagefontwidth</refname>
+ <refpurpose>Ermittle die Breite einer Schriftart</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>int</type><methodname>imagefontwidth</methodname>
+ <methodparam><type>int</type><parameter>font</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ Gibt die Breite eines Zeichens (in Pixel) in der angegebenen Schriftart
+ zurück.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ &gd.font.description;
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Gibt die Breite der Schriftart in Pixel zurück.
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>Verwendung von <function>imagefontwidth</function> mit integrierten Schriftarten</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+echo 'Breite der Schriftart: ' . imagefontwidth(4);
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+Breite der Schriftart: 8
+]]>
+ </screen>
+ </example>
+ <example>
+ <title>Verwendung von <function>imagefontwidth</function> mit <function>imageloadfont</function></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// Lade eine .gdf Schriftart
+$font = imageloadfont('anonymous.gdf');
+
+echo 'Breite der Schriftart: ' . imagefontwidth($font);
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+Breite der Schriftart: 23
+]]>
+ </screen>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>imagefontheight</function></member>
+ <member><function>imageloadfont</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
+
+</refentry>
+
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml