reference/image/functions/imagecopy.xml
593ea510e853ff034e03f78a4be0daa41661c9d4
...
...
@@ -9,21 +9,21 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>bool</type><methodname>imagecopy</methodname>
12
-
<methodparam><type>resource</type><parameter>dst_im</parameter></methodparam>
13
-
<methodparam><type>resource</type><parameter>src_im</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>src_w</parameter></methodparam>
19
-
<methodparam><type>int</type><parameter>src_h</parameter></methodparam>
18
+
<methodparam><type>int</type><parameter>src_width</parameter></methodparam>
19
+
<methodparam><type>int</type><parameter>src_height</parameter></methodparam>
20
20
</methodsynopsis>
21
21
<para>
22
-
Copy a part of <parameter>src_im</parameter> onto
23
-
<parameter>dst_im</parameter> starting at the x,y coordinates
22
+
Copy a part of <parameter>src_image</parameter> onto
23
+
<parameter>dst_image</parameter> starting at the x,y coordinates
24
24
<parameter>src_x</parameter>, <parameter>src_y </parameter> with
25
-
a width of <parameter>src_w</parameter> and a height of
26
-
<parameter>src_h</parameter>. The portion defined will be copied
25
+
a width of <parameter>src_width</parameter> and a height of
26
+
<parameter>src_height</parameter>. The portion defined will be copied
27
27
onto the x,y coordinates, <parameter>dst_x</parameter> and
28
28
<parameter>dst_y</parameter>.
29
29
</para>
...
...
@@ -33,13 +33,13 @@
33
33
<para>
34
34
<variablelist>
35
35
<varlistentry>
36
-
<term><parameter>dst_im</parameter></term>
36
+
<term><parameter>dst_image</parameter></term>
37
37
<listitem>
38
38
<para>&gd.image.destination;</para>
39
39
</listitem>
40
40
</varlistentry>
41
41
<varlistentry>
42
-
<term><parameter>src_im</parameter></term>
42
+
<term><parameter>src_image</parameter></term>
43
43
<listitem>
44
44
<para>&gd.image.source;</para>
45
45
</listitem>
...
...
@@ -77,13 +77,13 @@
77
77
</listitem>
78
78
</varlistentry>
79
79
<varlistentry>
80
-
<term><parameter>src_w</parameter></term>
80
+
<term><parameter>src_width</parameter></term>
81
81
<listitem>
82
82
<para>&gd.source.width;</para>
83
83
</listitem>
84
84
</varlistentry>
85
85
<varlistentry>
86
-
<term><parameter>src_h</parameter></term>
86
+
<term><parameter>src_height</parameter></term>
87
87
<listitem>
88
88
<para>&gd.source.height;</para>
89
89
</listitem>
...
...
@@ -97,6 +97,31 @@
97
97
&return.success;
98
98
</para>
99
99
</refsect1>
100
+

101
+
<refsect1 role="changelog">
102
+
&reftitle.changelog;
103
+
<informaltable>
104
+
<tgroup cols="2">
105
+
<thead>
106
+
<row>
107
+
<entry>&Version;</entry>
108
+
<entry>&Description;</entry>
109
+
</row>
110
+
</thead>
111
+
<tbody>
112
+
<row>
113
+
<entry>8.0.0</entry>
114
+
<entry>
115
+
<parameter>dst_image</parameter> and <parameter>src_image</parameter> expect
116
+
<classname>GdImage</classname> instances now; previously, <type>resource</type>s
117
+
were expected.
118
+
</entry>
119
+
</row>
120
+
</tbody>
121
+
</tgroup>
122
+
</informaltable>
123
+
</refsect1>
124
+

100
125
<refsect1 role="examples">
101
126
&reftitle.examples;
102
127
<para>
...
...
@@ -132,8 +157,14 @@ imagedestroy($src);
132
157
</example>
133
158
</para>
134
159
</refsect1>
135
-
</refentry>
136
160

161
+
<refsect1 role="seealso">
162
+
&reftitle.seealso;
163
+
<simplelist>
164
+
<member><function>imagecrop</function></member>
165
+
</simplelist>
166
+
</refsect1>
167
+
</refentry>
137
168
<!-- Keep this comment at the end of the file
138
169
Local variables:
139
170
mode: sgml
140
171