reference/image/functions/imagecolorallocate.xml
593ea510e853ff034e03f78a4be0daa41661c9d4
...
...
@@ -8,8 +8,8 @@
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
-
<type>int</type><methodname>imagecolorallocate</methodname>
12
-
<methodparam><type>resource</type><parameter>image</parameter></methodparam>
11
+
<type class="union"><type>int</type><type>false</type></type><methodname>imagecolorallocate</methodname>
12
+
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
13
13
<methodparam><type>int</type><parameter>red</parameter></methodparam>
14
14
<methodparam><type>int</type><parameter>green</parameter></methodparam>
15
15
<methodparam><type>int</type><parameter>blue</parameter></methodparam>
...
...
@@ -66,30 +66,24 @@
66
66
</para>
67
67
&return.falseproblem;
68
68
</refsect1>
69
+

69
70
<refsect1 role="changelog">
70
71
&reftitle.changelog;
71
-
<para>
72
-
<informaltable>
73
-
<tgroup cols="2">
74
-
<thead>
75
-
<row>
76
-
<entry>&Version;</entry>
77
-
<entry>&Description;</entry>
78
-
</row>
79
-
</thead>
80
-
<tbody>
81
-
<row>
82
-
<entry>5.1.3</entry>
83
-
<entry>
84
-
Returns &false; if the allocation failed. Previously
85
-
<literal>-1</literal> was returned.
86
-
</entry>
87
-
</row>
88
-
</tbody>
89
-
</tgroup>
90
-
</informaltable>
91
-
</para>
72
+
<informaltable>
73
+
<tgroup cols="2">
74
+
<thead>
75
+
<row>
76
+
<entry>&Version;</entry>
77
+
<entry>&Description;</entry>
78
+
</row>
79
+
</thead>
80
+
<tbody>
81
+
&gd.changelog.image-param;
82
+
</tbody>
83
+
</tgroup>
84
+
</informaltable>
92
85
</refsect1>
86
+

93
87
<refsect1 role="examples">
94
88
&reftitle.examples;
95
89
<para>
...
...
@@ -120,15 +114,12 @@ $black = imagecolorallocate($im, 0x00, 0x00, 0x00);
120
114
</refsect1>
121
115
<refsect1 role="seealso">
122
116
&reftitle.seealso;
123
-
<para>
124
-
<simplelist>
125
-
<member><function>imagecolorallocatealpha</function></member>
126
-
<member><function>imagecolordeallocate</function></member>
127
-
</simplelist>
128
-
</para>
117
+
<simplelist>
118
+
<member><function>imagecolorallocatealpha</function></member>
119
+
<member><function>imagecolordeallocate</function></member>
120
+
</simplelist>
129
121
</refsect1>
130
122
</refentry>
131
-

132
123
<!-- Keep this comment at the end of the file
133
124
Local variables:
134
125
mode: sgml
135
126