reference/image/functions/imagecolortransparent.xml
593ea510e853ff034e03f78a4be0daa41661c9d4
...
...
@@ -9,11 +9,11 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>int</type><methodname>imagecolortransparent</methodname>
12
-
<methodparam><type>resource</type><parameter>image</parameter></methodparam>
13
-
<methodparam choice="opt"><type>int</type><parameter>color</parameter></methodparam>
12
+
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
13
+
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>color</parameter><initializer>&null;</initializer></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
-
Sets the transparent color in the given <parameter>image</parameter>.
16
+
Gets or sets the transparent color in the given <parameter>image</parameter>.
17
17
</para>
18
18
</refsect1>
19
19
<refsect1 role="parameters">
...
...
@@ -25,8 +25,7 @@
25
25
<term><parameter>color</parameter></term>
26
26
<listitem>
27
27
<para>
28
-
A color identifier created with
29
-
<function>imagecolorallocate</function>.
28
+
&gd.identifier.color;
30
29
</para>
31
30
</listitem>
32
31
</varlistentry>
...
...
@@ -38,10 +37,34 @@
38
37
<para>
39
38
The identifier of the new (or current, if none is specified)
40
39
transparent color is returned. If <parameter>color</parameter>
41
-
is not specified, and the image has no transparent color, the
42
-
returned identifier will be -1.
40
+
is &null;, and the image has no transparent color, the
41
+
returned identifier will be <literal>-1</literal>.
43
42
</para>
44
43
</refsect1>
44
+

45
+
<refsect1 role="changelog">
46
+
&reftitle.changelog;
47
+
<informaltable>
48
+
<tgroup cols="2">
49
+
<thead>
50
+
<row>
51
+
<entry>&Version;</entry>
52
+
<entry>&Description;</entry>
53
+
</row>
54
+
</thead>
55
+
<tbody>
56
+
&gd.changelog.image-param;
57
+
<row>
58
+
<entry>8.0.0</entry>
59
+
<entry>
60
+
<parameter>color</parameter> is now nullable.
61
+
</entry>
62
+
</row>
63
+
</tbody>
64
+
</tgroup>
65
+
</informaltable>
66
+
</refsect1>
67
+

45
68
<refsect1 role="examples">
46
69
&reftitle.examples;
47
70
<para>
...
...
@@ -95,7 +118,6 @@ imagedestroy($im);
95
118
</note>
96
119
</refsect1>
97
120
</refentry>
98
-

99
121
<!-- Keep this comment at the end of the file
100
122
Local variables:
101
123
mode: sgml
102
124