com doc/ja: Fix #78370: imagefilltoborder does not fill: reference/image/functions/imagefilltoborder.xml

[email protected] (Yoshinari Takaoka) Wed, 13 Jan 2021 16:41:04 +0000
Newsgroups php.doc.ja
Message-ID <[email protected]>
Commit:    5ea83a7c4cbd456add77dab6ef891e4c15a571db
Author:    Yoshinari Takaoka <[email protected]>         Thu, 14 Jan 2021 01:41:04 +0900
Parents:   bbe37fb67ba814d119471245518009aab141d462
Branches:  master

Link:       http://git.php.net/?p=doc/ja.git;a=commitdiff;h=5ea83a7c4cbd456add77dab6ef891e4c15a571db

Log:
Fix #78370: imagefilltoborder does not fill

Bugs:
https://bugs.php.net/78370

Changed paths:
  M  reference/image/functions/imagefilltoborder.xml


Diff:
diff --git a/reference/image/functions/imagefilltoborder.xml b/reference/image/functions/imagefilltoborder.xml
index a6e7b8c582..f0823f2f96 100644
--- a/reference/image/functions/imagefilltoborder.xml
+++ b/reference/image/functions/imagefilltoborder.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 1faec0faeb2235f5816d153f8c61a62443c26fce Maintainer: hirokawa Status: ready -->
+<!-- EN-Revision: 4b4883c70a4a4bd73e4a0c437432127514176c79 Maintainer: hirokawa Status: ready -->
 <!-- CREDITS: shimooka -->
 <refentry xml:id="function.imagefilltoborder" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -110,6 +110,20 @@ imagedestroy($im);
    </example>
   </para>
  </refsect1>
+
+ <refsect1 role="notes">
+  &reftitle.notes;
+  <simpara>
+   塗りつぶしのアルゴリズムは、
+   どのピクセルが既に設定されているかについて明示的に記憶しません。
+   むしろピクセルの色からそれを推測しようとします。
+   よって、そのピクセルが既に存在していたものか、
+   新たに設定されたものなのかは区別できません。
+   これは、画像で既に使われている色で画像を塗りつぶそうとすると、
+   望ましくない結果が得られることがあるということです。
+  </simpara>
+ </refsect1>
+
 </refentry>
 
 <!-- Keep this comment at the end of the file