reference/image/functions/imagecolorsforindex.xml
0773339dce767078f1ee0e55cc1c0428e02ae0ad
...
...
@@ -9,8 +9,8 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>array</type><methodname>imagecolorsforindex</methodname>
12
-
<methodparam><type>resource</type><parameter>image</parameter></methodparam>
13
-
<methodparam><type>int</type><parameter>index</parameter></methodparam>
12
+
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
13
+
<methodparam><type>int</type><parameter>color</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
Gets the color for a specified index.
...
...
@@ -22,7 +22,7 @@
22
22
<variablelist>
23
23
&gd.image.description;
24
24
<varlistentry>
25
-
<term><parameter>index</parameter></term>
25
+
<term><parameter>color</parameter></term>
26
26
<listitem>
27
27
<para>
28
28
The color index.
...
...
@@ -39,6 +39,31 @@
39
39
contain the appropriate values for the specified color index.
40
40
</para>
41
41
</refsect1>
42
+

43
+
<refsect1 role="changelog">
44
+
&reftitle.changelog;
45
+
<informaltable>
46
+
<tgroup cols="2">
47
+
<thead>
48
+
<row>
49
+
<entry>&Version;</entry>
50
+
<entry>&Description;</entry>
51
+
</row>
52
+
</thead>
53
+
<tbody>
54
+
&gd.changelog.image-param;
55
+
<row>
56
+
<entry>8.0.0</entry>
57
+
<entry>
58
+
<function>imagecolorsforindex</function> now throws a <classname>ValueError</classname> exception
59
+
if <parameter>color</parameter> is out of range; previously, &false; was returned instead.
60
+
</entry>
61
+
</row>
62
+
</tbody>
63
+
</tgroup>
64
+
</informaltable>
65
+
</refsect1>
66
+

42
67
<refsect1 role="examples">
43
68
&reftitle.examples;
44
69
<para>
...
...
@@ -82,15 +107,12 @@ Array
82
107
</refsect1>
83
108
<refsect1 role="seealso">
84
109
&reftitle.seealso;
85
-
<para>
86
-
<simplelist>
87
-
<member><function>imagecolorat</function></member>
88
-
<member><function>imagecolorexact</function></member>
89
-
</simplelist>
90
-
</para>
110
+
<simplelist>
111
+
<member><function>imagecolorat</function></member>
112
+
<member><function>imagecolorexact</function></member>
113
+
</simplelist>
91
114
</refsect1>
92
115
</refentry>
93
-

94
116
<!-- Keep this comment at the end of the file
95
117
Local variables:
96
118
mode: sgml
97
119