reference/image/functions/imagecopymergegray.xml
593ea510e853ff034e03f78a4be0daa41661c9d4
...
...
@@ -9,22 +9,22 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>bool</type><methodname>imagecopymergegray</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
<methodparam><type>int</type><parameter>pct</parameter></methodparam>
21
21
</methodsynopsis>
22
22
<para>
23
-
<function>imagecopymergegray</function> copy a part of <parameter>src_im</parameter> onto
24
-
<parameter>dst_im</parameter> starting at the x,y coordinates
23
+
<function>imagecopymergegray</function> copy a part of <parameter>src_image</parameter> onto
24
+
<parameter>dst_image</parameter> starting at the x,y coordinates
25
25
<parameter>src_x</parameter>, <parameter>src_y </parameter> with
26
-
a width of <parameter>src_w</parameter> and a height of
27
-
<parameter>src_h</parameter>. The portion defined will be copied
26
+
a width of <parameter>src_width</parameter> and a height of
27
+
<parameter>src_height</parameter>. The portion defined will be copied
28
28
onto the x,y coordinates, <parameter>dst_x</parameter> and
29
29
<parameter>dst_y</parameter>.
30
30
</para>
...
...
@@ -39,13 +39,13 @@
39
39
<para>
40
40
<variablelist>
41
41
<varlistentry>
42
-
<term><parameter>dst_im</parameter></term>
42
+
<term><parameter>dst_image</parameter></term>
43
43
<listitem>
44
44
<para>&gd.image.destination;</para>
45
45
</listitem>
46
46
</varlistentry>
47
47
<varlistentry>
48
-
<term><parameter>src_im</parameter></term>
48
+
<term><parameter>src_image</parameter></term>
49
49
<listitem>
50
50
<para>&gd.image.source;</para>
51
51
</listitem>
...
...
@@ -83,13 +83,13 @@
83
83
</listitem>
84
84
</varlistentry>
85
85
<varlistentry>
86
-
<term><parameter>src_w</parameter></term>
86
+
<term><parameter>src_width</parameter></term>
87
87
<listitem>
88
88
<para>&gd.source.width;</para>
89
89
</listitem>
90
90
</varlistentry>
91
91
<varlistentry>
92
-
<term><parameter>src_h</parameter></term>
92
+
<term><parameter>src_height</parameter></term>
93
93
<listitem>
94
94
<para>&gd.source.height;</para>
95
95
</listitem>
...
...
@@ -98,7 +98,7 @@
98
98
<term><parameter>pct</parameter></term>
99
99
<listitem>
100
100
<para>
101
-
The <parameter>src_im</parameter> will be changed to grayscale according
101
+
The <parameter>src_image</parameter> will be changed to grayscale according
102
102
to <parameter>pct</parameter> where 0 is fully grayscale and 100 is
103
103
unchanged. When <parameter>pct</parameter> = 100 this function behaves
104
104
identically to <function>imagecopy</function> for pallete images, except for
...
...
@@ -116,6 +116,31 @@
116
116
&return.success;
117
117
</para>
118
118
</refsect1>
119
+

120
+
<refsect1 role="changelog">
121
+
&reftitle.changelog;
122
+
<informaltable>
123
+
<tgroup cols="2">
124
+
<thead>
125
+
<row>
126
+
<entry>&Version;</entry>
127
+
<entry>&Description;</entry>
128
+
</row>
129
+
</thead>
130
+
<tbody>
131
+
<row>
132
+
<entry>8.0.0</entry>
133
+
<entry>
134
+
<parameter>dst_image</parameter> and <parameter>src_image</parameter> expect
135
+
<classname>GdImage</classname> instances now; previously, <type>resource</type>s
136
+
were expected.
137
+
</entry>
138
+
</row>
139
+
</tbody>
140
+
</tgroup>
141
+
</informaltable>
142
+
</refsect1>
143
+

119
144
<refsect1 role="examples">
120
145
&reftitle.examples;
121
146
<para>
...
...
@@ -144,7 +169,6 @@ imagedestroy($src);
144
169
</para>
145
170
</refsect1>
146
171
</refentry>
147
-

148
172
<!-- Keep this comment at the end of the file
149
173
Local variables:
150
174
mode: sgml
151
175