reference/image/functions/imageistruecolor.xml
593ea510e853ff034e03f78a4be0daa41661c9d4
...
...
@@ -9,7 +9,7 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>bool</type><methodname>imageistruecolor</methodname>
12
-
<methodparam><type>resource</type><parameter>image</parameter></methodparam>
12
+
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
13
13
</methodsynopsis>
14
14
<para>
15
15
<function>imageistruecolor</function> finds whether the image
...
...
@@ -31,6 +31,24 @@
31
31
otherwise.
32
32
</para>
33
33
</refsect1>
34
+

35
+
<refsect1 role="changelog">
36
+
&reftitle.changelog;
37
+
<informaltable>
38
+
<tgroup cols="2">
39
+
<thead>
40
+
<row>
41
+
<entry>&Version;</entry>
42
+
<entry>&Description;</entry>
43
+
</row>
44
+
</thead>
45
+
<tbody>
46
+
&gd.changelog.image-param;
47
+
</tbody>
48
+
</tgroup>
49
+
</informaltable>
50
+
</refsect1>
51
+

34
52
<refsect1 role="examples">
35
53
&reftitle.examples;
36
54
<para>
...
...
@@ -47,11 +65,14 @@ if(!imageistruecolor($im))
47
65
// Create a new true color image instance
48
66
$tc = imagecreatetruecolor(imagesx($im), imagesy($im));
49
67

68
+
// Copy over the pixels
50
69
imagecopy($tc, $im, 0, 0, 0, 0, imagesx($im), imagesy($im));
51
70
imagedestroy($im);
52
71

53
72
$im = $tc;
54
73
$tc = NULL;
74
+

75
+
// OR use imagepalettetotruecolor()
55
76
}
56
77

57
78
// Continue working with image instance
...
...
@@ -61,20 +82,15 @@ if(!imageistruecolor($im))
61
82
</example>
62
83
</para>
63
84
</refsect1>
64
-
<refsect1 role="notes">
65
-
&reftitle.notes;
66
-
&note.gd.2;
67
-
</refsect1>
85
+

68
86
<refsect1 role="seealso">
69
87
&reftitle.seealso;
70
-
<para>
71
-
<simplelist>
72
-
<member><function>imagecreatetruecolor</function></member>
73
-
</simplelist>
74
-
</para>
88
+
<simplelist>
89
+
<member><function>imagecreatetruecolor</function></member>
90
+
<member><function>imagepalettetotruecolor</function></member>
91
+
</simplelist>
75
92
</refsect1>
76
93
</refentry>
77
-

78
94
<!-- Keep this comment at the end of the file
79
95
Local variables:
80
96
mode: sgml
81
97