reference/image/functions/imagesetbrush.xml
593ea510e853ff034e03f78a4be0daa41661c9d4
...
...
@@ -9,8 +9,8 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>bool</type><methodname>imagesetbrush</methodname>
12
-
<methodparam><type>resource</type><parameter>image</parameter></methodparam>
13
-
<methodparam><type>resource</type><parameter>brush</parameter></methodparam>
12
+
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
13
+
<methodparam><type>GdImage</type><parameter>brush</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
<function>imagesetbrush</function> sets the brush image to be
...
...
@@ -19,6 +19,15 @@
19
19
colors <constant>IMG_COLOR_BRUSHED</constant> or
20
20
<constant>IMG_COLOR_STYLEDBRUSHED</constant>.
21
21
</para>
22
+
<caution>
23
+
<para>
24
+
You need not take special action when you are finished with a brush, but
25
+
if you destroy the brush image (or let PHP destroy it), you must not use the
26
+
<constant>IMG_COLOR_BRUSHED</constant> or
27
+
<constant>IMG_COLOR_STYLEDBRUSHED</constant> colors until you have set a
28
+
new brush image!
29
+
</para>
30
+
</caution>
22
31
</refsect1>
23
32
<refsect1 role="parameters">
24
33
&reftitle.parameters;
...
...
@@ -29,7 +38,7 @@
29
38
<term><parameter>brush</parameter></term>
30
39
<listitem>
31
40
<para>
32
-
An image resource.
41
+
An image object.
33
42
</para>
34
43
</listitem>
35
44
</varlistentry>
...
...
@@ -42,6 +51,31 @@
42
51
&return.success;
43
52
</para>
44
53
</refsect1>
54
+

55
+
<refsect1 role="changelog">
56
+
&reftitle.changelog;
57
+
<informaltable>
58
+
<tgroup cols="2">
59
+
<thead>
60
+
<row>
61
+
<entry>&Version;</entry>
62
+
<entry>&Description;</entry>
63
+
</row>
64
+
</thead>
65
+
<tbody>
66
+
<row>
67
+
<entry>8.0.0</entry>
68
+
<entry>
69
+
<parameter>image</parameter> and <parameter>brush</parameter> expect
70
+
<classname>GdImage</classname> instances now; previously, <type>resource</type>s
71
+
were expected.
72
+
</entry>
73
+
</row>
74
+
</tbody>
75
+
</tgroup>
76
+
</informaltable>
77
+
</refsect1>
78
+

45
79
<refsect1 role="examples">
46
80
&reftitle.examples;
47
81
<para>
...
...
@@ -85,20 +119,8 @@ imagedestroy($php);
85
119
</example>
86
120
</para>
87
121
</refsect1>
88
-
<refsect1 role="notes">
89
-
&reftitle.notes;
90
-
<note>
91
-
<para>
92
-
You need not take special action when you are finished with a brush, but
93
-
if you destroy the brush image, you must not use the
94
-
<constant>IMG_COLOR_BRUSHED</constant> or
95
-
<constant>IMG_COLOR_STYLEDBRUSHED</constant> colors until you have set a
96
-
new brush image!
97
-
</para>
98
-
</note>
99
-
</refsect1>
100
-
</refentry>
101
122

123
+
</refentry>
102
124
<!-- Keep this comment at the end of the file
103
125
Local variables:
104
126
mode: sgml
105
127