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
...
...
@@ -22,8 +21,6 @@
22
21
The center of rotation is the center of the image, and the rotated
23
22
image may have different dimensions than the original image.
24
23
</para>
25
-
<para>
26
-
</para>
27
24
</refsect1>
28
25
<refsect1 role="parameters">
29
26
&reftitle.parameters;
...
...
@@ -40,53 +37,60 @@
40
37
</listitem>
41
38
</varlistentry>
42
39
<varlistentry>
43
-
<term><parameter>bgd_color</parameter></term>
40
+
<term><parameter>background_color</parameter></term>
44
41
<listitem>
45
42
<para>
46
43
Specifies the color of the uncovered zone after the rotation
47
44
</para>
48
45
</listitem>
49
46
</varlistentry>
50
-
<varlistentry>
51
-
<term><parameter>ignore_transparent</parameter></term>
52
-
<listitem>
53
-
<para>
54
-
If set and non-zero, transparent colors are ignored (otherwise kept).
55
-
</para>
56
-
</listitem>
57
-
</varlistentry>
58
47
</variablelist>
59
48
</para>
60
49
</refsect1>
61
50
<refsect1 role="returnvalues">
62
51
&reftitle.returnvalues;
63
52
<para>
64
-
Returns an image resource for the rotated image, &return.falseforfailure;.
53
+
Returns an image object for the rotated image, &return.falseforfailure;.
65
54
</para>
66
55
</refsect1>
56
+

67
57
<refsect1 role="changelog">
68
58
&reftitle.changelog;
69
-
<para>
70
-
<informaltable>
71
-
<tgroup cols="2">
72
-
<thead>
73
-
<row>
74
-
<entry>&Version;</entry>
75
-
<entry>&Description;</entry>
76
-
</row>
77
-
</thead>
78
-
<tbody>
79
-
<row>
80
-
<entry>5.1.0</entry>
81
-
<entry>
82
-
<parameter>ignore_transparent</parameter> was added.
83
-
</entry>
84
-
</row>
85
-
</tbody>
86
-
</tgroup>
87
-
</informaltable>
88
-
</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>
89
92
</refsect1>
93
+

90
94
<refsect1 role="examples">
91
95
&reftitle.examples;
92
96
<para>
...
...
@@ -113,6 +117,10 @@ $rotate = imagerotate($source, $degrees, 0);
113
117

114
118
// Output
115
119
imagejpeg($rotate);
120
+

121
+
// Free the memory
122
+
imagedestroy($source);
123
+
imagedestroy($rotate);
116
124
?>
117
125
]]>
118
126
</programlisting>
...
...
@@ -128,10 +136,15 @@ imagejpeg($rotate);
128
136
</refsect1>
129
137
<refsect1 role="notes">
130
138
&reftitle.notes;
131
-
&note.bundled.gd;
139
+
&note.gd.interpolation;
140
+
</refsect1>
141
+
<refsect1 role="seealso">
142
+
&reftitle.seealso;
143
+
<simplelist>
144
+
<member><function>imagesetinterpolation</function></member>
145
+
</simplelist>
132
146
</refsect1>
133
147
</refentry>
134
-

135
148
<!-- Keep this comment at the end of the file
136
149
Local variables:
137
150
mode: sgml
138
151