reference/image/functions/imagetruecolortopalette.xml
593ea510e853ff034e03f78a4be0daa41661c9d4
...
...
@@ -9,9 +9,9 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>bool</type><methodname>imagetruecolortopalette</methodname>
12
-
<methodparam><type>resource</type><parameter>image</parameter></methodparam>
12
+
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
13
13
<methodparam><type>bool</type><parameter>dither</parameter></methodparam>
14
-
<methodparam><type>int</type><parameter>ncolors</parameter></methodparam>
14
+
<methodparam><type>int</type><parameter>num_colors</parameter></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
<function>imagetruecolortopalette</function> converts a truecolor image
...
...
@@ -40,7 +40,7 @@
40
40
</listitem>
41
41
</varlistentry>
42
42
<varlistentry>
43
-
<term><parameter>ncolors</parameter></term>
43
+
<term><parameter>num_colors</parameter></term>
44
44
<listitem>
45
45
<para>
46
46
Sets the maximum number of colors that should be retained in the palette.
...
...
@@ -56,6 +56,24 @@
56
56
&return.success;
57
57
</para>
58
58
</refsect1>
59
+

60
+
<refsect1 role="changelog">
61
+
&reftitle.changelog;
62
+
<informaltable>
63
+
<tgroup cols="2">
64
+
<thead>
65
+
<row>
66
+
<entry>&Version;</entry>
67
+
<entry>&Description;</entry>
68
+
</row>
69
+
</thead>
70
+
<tbody>
71
+
&gd.changelog.image-param;
72
+
</tbody>
73
+
</tgroup>
74
+
</informaltable>
75
+
</refsect1>
76
+

59
77
<refsect1 role="examples">
60
78
&reftitle.examples;
61
79
<para>
...
...
@@ -79,12 +97,8 @@ imagedestroy($im);
79
97
</example>
80
98
</para>
81
99
</refsect1>
82
-
<refsect1 role="notes">
83
-
&reftitle.notes;
84
-
&note.gd.2;
85
-
</refsect1>
86
-
</refentry>
87
100

101
+
</refentry>
88
102
<!-- Keep this comment at the end of the file
89
103
Local variables:
90
104
mode: sgml
91
105