reference/image/functions/imagecreatetruecolor.xml
593ea510e853ff034e03f78a4be0daa41661c9d4
...
...
@@ -8,22 +8,14 @@
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
-
<type>resource</type><methodname>imagecreatetruecolor</methodname>
11
+
<type class="union"><type>GdImage</type><type>false</type></type><methodname>imagecreatetruecolor</methodname>
12
12
<methodparam><type>int</type><parameter>width</parameter></methodparam>
13
13
<methodparam><type>int</type><parameter>height</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
-
<function>imagecreatetruecolor</function> returns an image identifier
16
+
<function>imagecreatetruecolor</function> returns an image object
17
17
representing a black image of the specified size.
18
18
</para>
19
-
<para>
20
-
Depending on your PHP and GD versions this function is defined or not. With
21
-
PHP 4.0.6 through 4.1.x this function always exists if the GD module is
22
-
loaded, but calling it without GD2 being installed PHP will issue a fatal
23
-
error and exit. With PHP 4.2.x this behaviour is different in issuing a
24
-
warning instead of an error. Other versions only define this function, if
25
-
the correct GD version is installed.
26
-
</para>
27
19
</refsect1>
28
20
<refsect1 role="parameters">
29
21
&reftitle.parameters;
...
...
@@ -52,6 +44,30 @@
52
44
&reftitle.returnvalues;
53
45
<para>&gd.return.identifier;</para>
54
46
</refsect1>
47
+

48
+
<refsect1 role="changelog">
49
+
&reftitle.changelog;
50
+
<informaltable>
51
+
<tgroup cols="2">
52
+
<thead>
53
+
<row>
54
+
<entry>&Version;</entry>
55
+
<entry>&Description;</entry>
56
+
</row>
57
+
</thead>
58
+
<tbody>
59
+
<row>
60
+
<entry>8.0.0</entry>
61
+
<entry>
62
+
On success, this function returns a <classname>GDImage</classname> instance now;
63
+
previously, a <type>resource</type> was returned.
64
+
</entry>
65
+
</row>
66
+
</tbody>
67
+
</tgroup>
68
+
</informaltable>
69
+
</refsect1>
70
+

55
71
<refsect1 role="examples">
56
72
&reftitle.examples;
57
73
<para>
...
...
@@ -82,21 +98,15 @@ imagedestroy($im);
82
98
</example>
83
99
</para>
84
100
</refsect1>
85
-
<refsect1 role="notes">
86
-
&reftitle.notes;
87
-
&note.gd.2;
88
-
</refsect1>
101
+

89
102
<refsect1 role="seealso">
90
103
&reftitle.seealso;
91
-
<para>
92
-
<simplelist>
93
-
<member><function>imagedestroy</function></member>
94
-
<member><function>imagecreate</function></member>
95
-
</simplelist>
96
-
</para>
104
+
<simplelist>
105
+
<member><function>imagedestroy</function></member>
106
+
<member><function>imagecreate</function></member>
107
+
</simplelist>
97
108
</refsect1>
98
109
</refentry>
99
-

100
110
<!-- Keep this comment at the end of the file
101
111
Local variables:
102
112
mode: sgml
103
113