svn: /phpdoc/ja/trunk/reference/image/functions/ imagefilledpolygon.xml imageopenpolygon.xml imagepolygon.xml

From: Date: Sun, 20 Dec 2020 08:37:21 +0000
Subject: svn: /phpdoc/ja/trunk/reference/image/functions/ imagefilledpolygon.xml imageopenpolygon.xml imagepolygon.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-5974@lists.php.net to get a copy of this message
mumumu Sun, 20 Dec 2020 08:37:21 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=352140 Log: $num_points parameter of image*polygon() is now optional Cf. <https://github.com/php/php-src/pull/4885>. Changed paths: U phpdoc/ja/trunk/reference/image/functions/imagefilledpolygon.xml U phpdoc/ja/trunk/reference/image/functions/imageopenpolygon.xml U phpdoc/ja/trunk/reference/image/functions/imagepolygon.xml Modified: phpdoc/ja/trunk/reference/image/functions/imagefilledpolygon.xml =================================================================== --- phpdoc/ja/trunk/reference/image/functions/imagefilledpolygon.xml 2020-12-19 16:46:03 UTC (rev 352139) +++ phpdoc/ja/trunk/reference/image/functions/imagefilledpolygon.xml 2020-12-20 08:37:21 UTC (rev 352140) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 350828 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 352128 Maintainer: hirokawa Status: ready --> <!-- Credits: mumumu --> <refentry xml:id="function.imagefilledpolygon" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -16,6 +16,13 @@ <methodparam><type>int</type><parameter>num_points</parameter></methodparam> <methodparam><type>int</type><parameter>color</parameter></methodparam> </methodsynopsis> + <simpara>代替のシグネチャ (PHP 8.0.0 以降)</simpara> + <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>color</parameter></methodparam> + </methodsynopsis> <para> <function>imagefilledpolygon</function> は画像 <parameter>image</parameter> 上に塗りつぶした多角形を生成します。 @@ -42,6 +49,12 @@ 頂点の総数。 3 以上である必要があります。 </para> + <simpara> + 代替のシグネチャ(PHP 8.0.0 以降) でこの引数が省略された場合、 + <parameter>points</parameter> は偶数でなければいけません。また、 + <parameter>num_points</parameter> は + <code>count($points)/2</code> であると仮定されます。 + </simpara> </listitem> </varlistentry> <varlistentry> Modified: phpdoc/ja/trunk/reference/image/functions/imageopenpolygon.xml =================================================================== --- phpdoc/ja/trunk/reference/image/functions/imageopenpolygon.xml 2020-12-19 16:46:03 UTC (rev 352139) +++ phpdoc/ja/trunk/reference/image/functions/imageopenpolygon.xml 2020-12-20 08:37:21 UTC (rev 352140) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 350828 Maintainer: mumumu Status: ready --> +<!-- EN-Revision: 352128 Maintainer: mumumu Status: ready --> <refentry xml:id="function.imageopenpolygon" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -17,6 +17,13 @@ <methodparam><type>int</type><parameter>num_points</parameter></methodparam> <methodparam><type>int</type><parameter>color</parameter></methodparam> </methodsynopsis> + <simpara>代替のシグネチャ (PHP 8.0.0 以降)</simpara> + <methodsynopsis> + <type>bool</type><methodname>imageopenpolygon</methodname> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> + <methodparam><type>array</type><parameter>points</parameter></methodparam> + <methodparam><type>int</type><parameter>color</parameter></methodparam> + </methodsynopsis> <para> <function>imageopenpolygon</function> 関数は、 与えられた <parameter>image</parameter> のオープンポリゴンを描画します。 @@ -66,6 +73,12 @@ <para> 全ての点の数。少なくとも3以上である必要があります。 </para> + <simpara> + 代替のシグネチャ(PHP 8.0.0 以降) でこの引数が省略された場合、 + <parameter>points</parameter> は偶数でなければいけません。また、 + <parameter>num_points</parameter> は + <code>count($points)/2</code> であると仮定されます。 + </simpara> </listitem> </varlistentry> <varlistentry> Modified: phpdoc/ja/trunk/reference/image/functions/imagepolygon.xml =================================================================== --- phpdoc/ja/trunk/reference/image/functions/imagepolygon.xml 2020-12-19 16:46:03 UTC (rev 352139) +++ phpdoc/ja/trunk/reference/image/functions/imagepolygon.xml 2020-12-20 08:37:21 UTC (rev 352140) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 350828 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 352128 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka,mumumu --> <refentry xml:id="function.imagepolygon" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -16,6 +16,13 @@ <methodparam><type>int</type><parameter>num_points</parameter></methodparam> <methodparam><type>int</type><parameter>color</parameter></methodparam> </methodsynopsis> + <simpara>代替のシグネチャ (PHP 8.0.0 以降)</simpara> + <methodsynopsis> + <type>bool</type><methodname>imagepolygon</methodname> + <methodparam><type>resource</type><parameter>image</parameter></methodparam> + <methodparam><type>array</type><parameter>points</parameter></methodparam> + <methodparam><type>int</type><parameter>color</parameter></methodparam> + </methodsynopsis> <para> <function>imagepolygon</function> は、指定した <parameter>image</parameter> に多角形を作成します。 @@ -63,6 +70,12 @@ <para> 頂点の総数。最小でも3でなければなりません。 </para> + <simpara> + 代替のシグネチャ(PHP 8.0.0 以降) でこの引数が省略された場合、 + <parameter>points</parameter> は偶数でなければいけません。また、 + <parameter>num_points</parameter> は + <code>count($points)/2</code> であると仮定されます。 + </simpara> </listitem> </varlistentry> <varlistentry>

« previous php.doc.ja (#5974) next »