reference/image/functions/imagecolorat.xml
593ea510e853ff034e03f78a4be0daa41661c9d4
...
...
@@ -8,8 +8,8 @@
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
-
<type>int</type><methodname>imagecolorat</methodname>
12
-
<methodparam><type>resource</type><parameter>image</parameter></methodparam>
11
+
<type class="union"><type>int</type><type>false</type></type><methodname>imagecolorat</methodname>
12
+
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
13
13
<methodparam><type>int</type><parameter>x</parameter></methodparam>
14
14
<methodparam><type>int</type><parameter>y</parameter></methodparam>
15
15
</methodsynopsis>
...
...
@@ -18,7 +18,7 @@
18
18
specified location in the image specified by <parameter>image</parameter>.
19
19
</para>
20
20
<para>
21
-
If PHP is compiled against GD library 2.0 or higher and the image is a
21
+
If the image is a
22
22
truecolor image, this function returns the RGB value of that pixel as
23
23
integer. Use bitshifting and masking to access the distinct red, green and blue
24
24
component values:
...
...
@@ -51,9 +51,28 @@
51
51
<refsect1 role="returnvalues">
52
52
&reftitle.returnvalues;
53
53
<para>
54
-
Returns the index of the color.
54
+
Returns the index of the color &return.falseforfailure;.
55
55
</para>
56
+
&return.falseproblem;
56
57
</refsect1>
58
+

59
+
<refsect1 role="changelog">
60
+
&reftitle.changelog;
61
+
<informaltable>
62
+
<tgroup cols="2">
63
+
<thead>
64
+
<row>
65
+
<entry>&Version;</entry>
66
+
<entry>&Description;</entry>
67
+
</row>
68
+
</thead>
69
+
<tbody>
70
+
&gd.changelog.image-param;
71
+
</tbody>
72
+
</tgroup>
73
+
</informaltable>
74
+
</refsect1>
75
+

57
76
<refsect1 role="examples">
58
77
&reftitle.examples;
59
78
<para>
...
...
@@ -115,16 +134,13 @@ array(4) {
115
134
</refsect1>
116
135
<refsect1 role="seealso">
117
136
&reftitle.seealso;
118
-
<para>
119
-
<simplelist>
120
-
<member><function>imagecolorset</function></member>
121
-
<member><function>imagecolorsforindex</function></member>
122
-
<member><function>imagesetpixel</function></member>
123
-
</simplelist>
124
-
</para>
137
+
<simplelist>
138
+
<member><function>imagecolorset</function></member>
139
+
<member><function>imagecolorsforindex</function></member>
140
+
<member><function>imagesetpixel</function></member>
141
+
</simplelist>
125
142
</refsect1>
126
143
</refentry>
127
-

128
144
<!-- Keep this comment at the end of the file
129
145
Local variables:
130
146
mode: sgml
131
147