reference/image/functions/imagegd.xml
593ea510e853ff034e03f78a4be0daa41661c9d4
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xml:id='function.imagegd' xmlns="http://docbook.org/ns/docbook">
3
+
<refentry xml:id="function.imagegd" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>imagegd</refname>
6
6
<refpurpose>Output GD image to browser or file</refpurpose>
...
...
@@ -9,11 +9,11 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>bool</type><methodname>imagegd</methodname>
12
-
<methodparam><type>resource</type><parameter>image</parameter></methodparam>
13
-
<methodparam choice="opt"><type>string</type><parameter>filename</parameter></methodparam>
12
+
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
13
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>file</parameter><initializer>&null;</initializer></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
-
Outputs a GD image to the given <parameter>filename</parameter>.
16
+
Outputs a GD image to the given <parameter>file</parameter>.
17
17
</para>
18
18
</refsect1>
19
19
<refsect1 role="parameters">
...
...
@@ -22,7 +22,7 @@
22
22
<variablelist>
23
23
&gd.image.description;
24
24
<varlistentry>
25
-
<term><parameter>filename</parameter></term>
25
+
<term><parameter>file</parameter></term>
26
26
<listitem>
27
27
<para>&gd.image.path;</para>
28
28
</listitem>
...
...
@@ -35,7 +35,41 @@
35
35
<para>
36
36
&return.success;
37
37
</para>
38
+
&gd.return.trueonerror;
38
39
</refsect1>
40
+

41
+
<refsect1 role="changelog">
42
+
&reftitle.changelog;
43
+
<para>
44
+
<informaltable>
45
+
<tgroup cols="2">
46
+
<thead>
47
+
<row>
48
+
<entry>&Version;</entry>
49
+
<entry>&Description;</entry>
50
+
</row>
51
+
</thead>
52
+
<tbody>
53
+
<row>
54
+
<entry>8.0.3</entry>
55
+
<entry>
56
+
<parameter>file</parameter> is now nullable.
57
+
</entry>
58
+
</row>
59
+
&gd.changelog.image-param;
60
+
<row>
61
+
<entry>7.2.0</entry>
62
+
<entry>
63
+
<function>imagegd</function> now allows to output truecolor images.
64
+
Formerly, these have been implicitly converted to palette.
65
+
</entry>
66
+
</row>
67
+
</tbody>
68
+
</tgroup>
69
+
</informaltable>
70
+
</para>
71
+
</refsect1>
72
+

39
73
<refsect1 role="examples">
40
74
&reftitle.examples;
41
75
<para>
...
...
@@ -90,17 +124,15 @@ imagedestroy($im);
90
124
Note that the GD format is only usable in GD-compatible applications.
91
125
</para>
92
126
</note>
127
+
&gd.deprecated.gd-formats;
93
128
</refsect1>
94
129
<refsect1 role="seealso">
95
130
&reftitle.seealso;
96
-
<para>
97
-
<simplelist>
98
-
<member><function>imagegd2</function></member>
99
-
</simplelist>
100
-
</para>
131
+
<simplelist>
132
+
<member><function>imagegd2</function></member>
133
+
</simplelist>
101
134
</refsect1>
102
135
</refentry>
103
-

104
136
<!-- Keep this comment at the end of the file
105
137
Local variables:
106
138
mode: sgml
107
139