reference/image/functions/imageaffine.xml
593ea510e853ff034e03f78a4be0daa41661c9d4
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="function.imageaffine" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>imageaffine</refname>
...
...
@@ -10,10 +9,10 @@
10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
11
<methodsynopsis>
13
-
<type>resource</type><methodname>imageaffine</methodname>
14
-
<methodparam><type>resource</type><parameter>image</parameter></methodparam>
12
+
<type class="union"><type>GdImage</type><type>false</type></type><methodname>imageaffine</methodname>
13
+
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
15
14
<methodparam><type>array</type><parameter>affine</parameter></methodparam>
16
-
<methodparam choice="opt"><type>array</type><parameter>clip</parameter></methodparam>
15
+
<methodparam choice="opt"><type class="union"><type>array</type><type>null</type></type><parameter>clip</parameter><initializer>&null;</initializer></methodparam>
17
16
</methodsynopsis>
18
17
<para>
19
18

...
...
@@ -39,7 +38,7 @@
39
38
<term><parameter>clip</parameter></term>
40
39
<listitem>
41
40
<para>
42
-
Array with keys "x", "y", "width" and "height".
41
+
Array with keys "x", "y", "width" and "height"; or &null;.
43
42
</para>
44
43
</listitem>
45
44
</varlistentry>
...
...
@@ -49,12 +48,40 @@
49
48
<refsect1 role="returnvalues">
50
49
&reftitle.returnvalues;
51
50
<para>
52
-
Return affined image resource on success&return.falseforfailure;.
51
+
Return affined image object on success&return.falseforfailure;.
53
52
</para>
54
53
</refsect1>
55
54

56
-
</refentry>
55
+
<refsect1 role="changelog">
56
+
&reftitle.changelog;
57
+
<informaltable>
58
+
<tgroup cols="2">
59
+
<thead>
60
+
<row>
61
+
<entry>&Version;</entry>
62
+
<entry>&Description;</entry>
63
+
</row>
64
+
</thead>
65
+
<tbody>
66
+
<row>
67
+
<entry>8.0.0</entry>
68
+
<entry>
69
+
<parameter>clip</parameter> is now nullable.
70
+
</entry>
71
+
</row>
72
+
<row>
73
+
<entry>8.0.0</entry>
74
+
<entry>
75
+
On success, this function returns a <classname>GDImage</classname> instance now;
76
+
previously, a <type>resource</type> was returned.
77
+
</entry>
78
+
</row>
79
+
</tbody>
80
+
</tgroup>
81
+
</informaltable>
82
+
</refsect1>
57
83

84
+
</refentry>
58
85
<!-- Keep this comment at the end of the file
59
86
Local variables:
60
87
mode: sgml
61
88