reference/image/functions/imagecopyresized.xml
593ea510e853ff034e03f78a4be0daa41661c9d4
...
...
@@ -9,16 +9,16 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>bool</type><methodname>imagecopyresized</methodname>
12
-
<methodparam><type>resource</type><parameter>dst_image</parameter></methodparam>
13
-
<methodparam><type>resource</type><parameter>src_image</parameter></methodparam>
12
+
<methodparam><type>GdImage</type><parameter>dst_image</parameter></methodparam>
13
+
<methodparam><type>GdImage</type><parameter>src_image</parameter></methodparam>
14
14
<methodparam><type>int</type><parameter>dst_x</parameter></methodparam>
15
15
<methodparam><type>int</type><parameter>dst_y</parameter></methodparam>
16
16
<methodparam><type>int</type><parameter>src_x</parameter></methodparam>
17
17
<methodparam><type>int</type><parameter>src_y</parameter></methodparam>
18
-
<methodparam><type>int</type><parameter>dst_w</parameter></methodparam>
19
-
<methodparam><type>int</type><parameter>dst_h</parameter></methodparam>
20
-
<methodparam><type>int</type><parameter>src_w</parameter></methodparam>
21
-
<methodparam><type>int</type><parameter>src_h</parameter></methodparam>
18
+
<methodparam><type>int</type><parameter>dst_width</parameter></methodparam>
19
+
<methodparam><type>int</type><parameter>dst_height</parameter></methodparam>
20
+
<methodparam><type>int</type><parameter>src_width</parameter></methodparam>
21
+
<methodparam><type>int</type><parameter>src_height</parameter></methodparam>
22
22
</methodsynopsis>
23
23
<para>
24
24
<function>imagecopyresized</function> copies a rectangular
...
...
@@ -29,10 +29,10 @@
29
29
<para>
30
30
In other words, <function>imagecopyresized</function> will take a
31
31
rectangular area from <parameter>src_image</parameter> of width
32
-
<parameter>src_w</parameter> and height <parameter>src_h</parameter> at
32
+
<parameter>src_width</parameter> and height <parameter>src_height</parameter> at
33
33
position (<parameter>src_x</parameter>,<parameter>src_y</parameter>)
34
34
and place it in a rectangular area of <parameter>dst_image</parameter>
35
-
of width <parameter>dst_w</parameter> and height <parameter>dst_h</parameter>
35
+
of width <parameter>dst_width</parameter> and height <parameter>dst_height</parameter>
36
36
at position (<parameter>dst_x</parameter>,<parameter>dst_y</parameter>).
37
37
</para>
38
38
<para>
...
...
@@ -94,7 +94,7 @@
94
94
</listitem>
95
95
</varlistentry>
96
96
<varlistentry>
97
-
<term><parameter>dst_w</parameter></term>
97
+
<term><parameter>dst_width</parameter></term>
98
98
<listitem>
99
99
<para>
100
100
Destination width.
...
...
@@ -102,7 +102,7 @@
102
102
</listitem>
103
103
</varlistentry>
104
104
<varlistentry>
105
-
<term><parameter>dst_h</parameter></term>
105
+
<term><parameter>dst_height</parameter></term>
106
106
<listitem>
107
107
<para>
108
108
Destination height.
...
...
@@ -110,13 +110,13 @@
110
110
</listitem>
111
111
</varlistentry>
112
112
<varlistentry>
113
-
<term><parameter>src_w</parameter></term>
113
+
<term><parameter>src_width</parameter></term>
114
114
<listitem>
115
115
<para>&gd.source.width;</para>
116
116
</listitem>
117
117
</varlistentry>
118
118
<varlistentry>
119
-
<term><parameter>src_h</parameter></term>
119
+
<term><parameter>src_height</parameter></term>
120
120
<listitem>
121
121
<para>&gd.source.height;</para>
122
122
</listitem>
...
...
@@ -130,6 +130,31 @@
130
130
&return.success;
131
131
</para>
132
132
</refsect1>
133
+

134
+
<refsect1 role="changelog">
135
+
&reftitle.changelog;
136
+
<informaltable>
137
+
<tgroup cols="2">
138
+
<thead>
139
+
<row>
140
+
<entry>&Version;</entry>
141
+
<entry>&Description;</entry>
142
+
</row>
143
+
</thead>
144
+
<tbody>
145
+
<row>
146
+
<entry>8.0.0</entry>
147
+
<entry>
148
+
<parameter>dst_image</parameter> and <parameter>src_image</parameter> expect
149
+
<classname>GdImage</classname> instances now; previously, <type>resource</type>s
150
+
were expected.
151
+
</entry>
152
+
</row>
153
+
</tbody>
154
+
</tgroup>
155
+
</informaltable>
156
+
</refsect1>
157
+

133
158
<refsect1 role="examples">
134
159
&reftitle.examples;
135
160
<para>
...
...
@@ -195,14 +220,16 @@ imagejpeg($thumb);
195
220
</para>
196
221
</note>
197
222
</refsect1>
223
+

198
224
<refsect1 role="seealso">
199
225
&reftitle.seealso;
200
-
<para>
201
-
<function>imagecopyresampled</function>
202
-
</para>
226
+
<simplelist>
227
+
<member><function>imagecopyresampled</function></member>
228
+
<member><function>imagescale</function></member>
229
+
<member><function>imagecrop</function></member>
230
+
</simplelist>
203
231
</refsect1>
204
232
</refentry>
205
-

206
233
<!-- Keep this comment at the end of the file
207
234
Local variables:
208
235
mode: sgml
209
236