reference/imagick/imagick/transformimagecolorspace.xml
65c4446ab35754d2f3cd8abec11302650a150bf9
...
...
@@ -5,14 +5,14 @@
5
5
<refnamediv>
6
6
<refname>Imagick::transformImageColorspace</refname>
7
7

8
-
<refpurpose>Transforms an image to a new colorspace.</refpurpose>
8
+
<refpurpose>Transforms an image to a new colorspace</refpurpose>
9
9
</refnamediv>
10
10

11
11
<refsect1 role="description">
12
12
&reftitle.description;
13
13

14
14
<methodsynopsis role="oop">
15
-
<type>bool</type><methodname>Imagick::transformImageColorspace</methodname>
15
+
<modifier>public</modifier> <type>bool</type><methodname>Imagick::transformImageColorspace</methodname>
16
16
<methodparam><type>int</type><parameter>colorspace</parameter></methodparam>
17
17
</methodsynopsis>
18
18
<para>
...
...
@@ -37,12 +37,10 @@
37
37
<refsect1 role="returnvalues">
38
38
&reftitle.returnvalues;
39
39
<para>
40
-
&return.success;
40
+
&imagick.return.success;
41
41
</para>
42
42
</refsect1>
43
43

44
-

45
-

46
44
<refsect1 role="examples">
47
45
&reftitle.examples;
48
46
<example xml:id="classname.methodname.example.basic">
...
...
@@ -77,31 +75,6 @@ function transformImageColorspace($imagePath, $colorSpace, $channel) {
77
75
</simplelist>
78
76
</refsect1>
79
77

80
-

81
-

82
-
<refsect1 role="examples">
83
-
&reftitle.examples;
84
-
<para>
85
-
<example>
86
-
<title> <function>Imagick::transformImageColorspace</function></title>
87
-
<programlisting role="php">
88
-
<![CDATA[
89
-
<?php
90
-
function transformImageColorspace($imagePath, $colorSpace, $channel) {
91
-
$imagick = new \Imagick(realpath($imagePath));
92
-
$imagick->transformimagecolorspace($colorSpace);
93
-
$imagick->separateImageChannel($channel);
94
-
header("Content-Type: image/jpg");
95
-
echo $imagick->getImageBlob();
96
-
}
97
-

98
-
?>
99
-
]]>
100
-
</programlisting>
101
-
</example>
102
-
</para>
103
-
</refsect1>
104
-

105
78
</refentry>
106
79

107
80
<!-- Keep this comment at the end of the file
108
81