reference/imagick/imagick/getimagealphachannel.xml
42aa8713e3a1e22695a80c2af2d61b96b249865d
...
...
@@ -3,28 +3,32 @@
3
3
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="imagick.getimagealphachannel">
4
4
<refnamediv>
5
5
<refname>Imagick::getImageAlphaChannel</refname>
6
-
<refpurpose>Gets the image alpha channel</refpurpose>
6
+
<refpurpose>Checks if the image has an alpha channel</refpurpose>
7
7
</refnamediv>
8
8

9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>int</type><methodname>Imagick::getImageAlphaChannel</methodname>
12
+
<modifier>public</modifier> <type>bool</type><methodname>Imagick::getImageAlphaChannel</methodname>
13
13
<void />
14
14
</methodsynopsis>
15
15

16
16
<para>
17
-
Gets the image alpha channel value. The returned value is one of the
18
-
<link linkend="imagick.constants.alphachannel">alpha channel constants</link>.
19
-
&imagick.method.available.0x640;
17
+
Returns whether the image has an alpha channel.
20
18
</para>
21
19
</refsect1>
22
20

21
+
<refsect1 role="parameters">
22
+
&reftitle.parameters;
23
+
&no.function.parameters;
24
+
</refsect1>
25
+

23
26
<refsect1 role="returnvalues">
24
27
&reftitle.returnvalues;
25
28
<para>
26
-
Returns a constant defining the current alpha channel value. Refer to this
27
-
list of <link linkend="imagick.constants.alphachannel">alpha channel constants</link>.
29
+
Returns &true; if the image has an alpha channel value and &false; if not,
30
+
i.e. the image is <acronym>RGB</acronym> rather than <acronym>RGBA</acronym>
31
+
or <acronym>CMYK</acronym> rather than <acronym>CMYKA</acronym>.
28
32
</para>
29
33
</refsect1>
30
34

...
...
@@ -35,6 +39,28 @@
35
39
</para>
36
40
</refsect1>
37
41

42
+
<refsect1 role="changelog">
43
+
&reftitle.changelog;
44
+
<informaltable>
45
+
<tgroup cols="2">
46
+
<thead>
47
+
<row>
48
+
<entry>&Version;</entry>
49
+
<entry>&Description;</entry>
50
+
</row>
51
+
</thead>
52
+
<tbody>
53
+
<row>
54
+
<entry>imagick 3.6.0</entry>
55
+
<entry>
56
+
Returns a &boolean; now; previously, an &integer; was returned.
57
+
</entry>
58
+
</row>
59
+
</tbody>
60
+
</tgroup>
61
+
</informaltable>
62
+
</refsect1>
63
+

38
64
</refentry>
39
65

40
66
<!-- Keep this comment at the end of the file
41
67