reference/image/functions/imagerotate.xml
42b44e4439dbc4ed27fc54b3a355bed104b3dad2
...
...
@@ -8,11 +8,10 @@
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
-
<type>resource</type><methodname>imagerotate</methodname>
12
-
<methodparam><type>resource</type><parameter>image</parameter></methodparam>
11
+
<type class="union"><type>GdImage</type><type>false</type></type><methodname>imagerotate</methodname>
12
+
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
13
13
<methodparam><type>float</type><parameter>angle</parameter></methodparam>
14
-
<methodparam><type>int</type><parameter>bgd_color</parameter></methodparam>
15
-
<methodparam choice="opt"><type>int</type><parameter>ignore_transparent</parameter><initializer>0</initializer></methodparam>
14
+
<methodparam><type>int</type><parameter>background_color</parameter></methodparam>
16
15
</methodsynopsis>
17
16
<para>
18
17
Rotates the <parameter>image</parameter> image using the given
...
...
@@ -38,60 +37,60 @@
38
37
</listitem>
39
38
</varlistentry>
40
39
<varlistentry>
41
-
<term><parameter>bgd_color</parameter></term>
40
+
<term><parameter>background_color</parameter></term>
42
41
<listitem>
43
42
<para>
44
43
Specifies the color of the uncovered zone after the rotation
45
44
</para>
46
45
</listitem>
47
46
</varlistentry>
48
-
<varlistentry>
49
-
<term><parameter>ignore_transparent</parameter></term>
50
-
<listitem>
51
-
<para>
52
-
If set and non-zero, transparent colors are ignored (otherwise kept).
53
-
</para>
54
-
</listitem>
55
-
</varlistentry>
56
47
</variablelist>
57
48
</para>
58
49
</refsect1>
59
50
<refsect1 role="returnvalues">
60
51
&reftitle.returnvalues;
61
52
<para>
62
-
Returns an image resource for the rotated image, &return.falseforfailure;.
53
+
Returns an image object for the rotated image, &return.falseforfailure;.
63
54
</para>
64
55
</refsect1>
56
+

65
57
<refsect1 role="changelog">
66
58
&reftitle.changelog;
67
-
<para>
68
-
<informaltable>
69
-
<tgroup cols="2">
70
-
<thead>
71
-
<row>
72
-
<entry>&Version;</entry>
73
-
<entry>&Description;</entry>
74
-
</row>
75
-
</thead>
76
-
<tbody>
77
-
<row>
78
-
<entry>5.5.0</entry>
79
-
<entry>
80
-
This function is now affected by the interpolation method set by the
81
-
<function>imagesetinterpolation</function> function.
82
-
</entry>
83
-
</row>
84
-
<row>
85
-
<entry>5.1.0</entry>
86
-
<entry>
87
-
<parameter>ignore_transparent</parameter> was added.
88
-
</entry>
89
-
</row>
90
-
</tbody>
91
-
</tgroup>
92
-
</informaltable>
93
-
</para>
59
+
<informaltable>
60
+
<tgroup cols="2">
61
+
<thead>
62
+
<row>
63
+
<entry>&Version;</entry>
64
+
<entry>&Description;</entry>
65
+
</row>
66
+
</thead>
67
+
<tbody>
68
+
<row>
69
+
<entry>8.3.0</entry>
70
+
<entry>
71
+
The unused <parameter>ignore_transparent</parameter> has been completely removed.
72
+
</entry>
73
+
</row>
74
+
<row>
75
+
<entry>8.0.0</entry>
76
+
<entry>
77
+
On success, this function returns a <classname>GDImage</classname> instance now;
78
+
previously, a <type>resource</type> was returned.
79
+
</entry>
80
+
</row>
81
+
&gd.changelog.image-param;
82
+
<row>
83
+
<entry>8.0.0</entry>
84
+
<entry>
85
+
The unused <parameter>ignore_transparent</parameter> expects a <type>bool</type> now;
86
+
previously it expected an <type>int</type>.
87
+
</entry>
88
+
</row>
89
+
</tbody>
90
+
</tgroup>
91
+
</informaltable>
94
92
</refsect1>
93
+

95
94
<refsect1 role="examples">
96
95
&reftitle.examples;
97
96
<para>
...
...
@@ -141,14 +140,11 @@ imagedestroy($rotate);
141
140
</refsect1>
142
141
<refsect1 role="seealso">
143
142
&reftitle.seealso;
144
-
<para>
145
-
<simplelist>
146
-
<member><function>imagesetinterpolation</function></member>
147
-
</simplelist>
148
-
</para>
143
+
<simplelist>
144
+
<member><function>imagesetinterpolation</function></member>
145
+
</simplelist>
149
146
</refsect1>
150
147
</refentry>
151
-

152
148
<!-- Keep this comment at the end of the file
153
149
Local variables:
154
150
mode: sgml
155
151