reference/image/functions/imagesetpixel.xml
ee0403b08276f179965318623980378033d34d72
...
...
@@ -9,7 +9,7 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>bool</type><methodname>imagesetpixel</methodname>
12
-
<methodparam><type>resource</type><parameter>image</parameter></methodparam>
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
<methodparam><type>int</type><parameter>color</parameter></methodparam>
...
...
@@ -44,8 +44,7 @@
44
44
<term><parameter>color</parameter></term>
45
45
<listitem>
46
46
<para>
47
-
A color identifier created with
48
-
<function>imagecolorallocate</function>.
47
+
&gd.identifier.color;
49
48
</para>
50
49
</listitem>
51
50
</varlistentry>
...
...
@@ -58,6 +57,24 @@
58
57
&return.success;
59
58
</para>
60
59
</refsect1>
60
+

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

61
78
<refsect1 role="examples">
62
79
&reftitle.examples;
63
80
<para>
...
...
@@ -82,7 +99,7 @@ $corners[2] = array('x' => 200, 'y' => 190);
82
99
$red = imagecolorallocate($gd, 255, 0, 0);
83
100

84
101
for ($i = 0; $i < 100000; $i++) {
85
-
imagesetpixel($gd, round($x),round($y), $red);
102
+
imagesetpixel($gd, round($x), round($y), $red);
86
103
$a = rand(0, 2);
87
104
$x = ($x + $corners[$a]['x']) / 2;
88
105
$y = ($y + $corners[$a]['y']) / 2;
...
...
@@ -106,16 +123,13 @@ imagepng($gd);
106
123
</refsect1>
107
124
<refsect1 role="seealso">
108
125
&reftitle.seealso;
109
-
<para>
110
-
<simplelist>
111
-
<member><function>imagecreatetruecolor</function></member>
112
-
<member><function>imagecolorallocate</function></member>
113
-
<member><function>imagecolorat</function></member>
114
-
</simplelist>
115
-
</para>
126
+
<simplelist>
127
+
<member><function>imagecreatetruecolor</function></member>
128
+
<member><function>imagecolorallocate</function></member>
129
+
<member><function>imagecolorat</function></member>
130
+
</simplelist>
116
131
</refsect1>
117
132
</refentry>
118
-

119
133
<!-- Keep this comment at the end of the file
120
134
Local variables:
121
135
mode: sgml
122
136