Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions reference/image/functions/imagedashedline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<para>
This function is deprecated. Use combination of
<function>imagesetstyle</function> and <function>imageline</function>
instead.
instead. 0, 0 is the top left corner of the image.
</para>
</refsect1>
<refsect1 role="parameters">
Expand All @@ -31,31 +31,31 @@
<term><parameter>x1</parameter></term>
<listitem>
<para>
Upper left x coordinate.
x-coordinate of the first point.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>y1</parameter></term>
<listitem>
<para>
Upper left y coordinate 0, 0 is the top left corner of the image.
y-coordinate of the first point.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>x2</parameter></term>
<listitem>
<para>
Bottom right x coordinate.
x-coordinate of the second point.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>y2</parameter></term>
<listitem>
<para>
Bottom right y coordinate.
y-coordinate of the second point.
</para>
</listitem>
</varlistentry>
Expand Down
5 changes: 2 additions & 3 deletions reference/image/functions/imagerectangle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</methodsynopsis>
<para>
<function>imagerectangle</function> creates a rectangle starting at
the specified coordinates.
the specified coordinates. 0, 0 is the top left corner of the image.
</para>
</refsect1>
<refsect1 role="parameters">
Expand All @@ -38,8 +38,7 @@
<term><parameter>y1</parameter></term>
<listitem>
<para>
Upper left y coordinate
0, 0 is the top left corner of the image.
Upper left y coordinate.
</para>
</listitem>
</varlistentry>
Expand Down
3 changes: 2 additions & 1 deletion reference/image/functions/imagesetbrush.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
<programlisting role="php">
<![CDATA[
<?php

// Load a mini php logo
$php = imagecreatefrompng('./php.png');

Expand All @@ -92,7 +93,7 @@ $im = imagecreatetruecolor(100, 100);

// Fill the background with white
$white = imagecolorallocate($im, 255, 255, 255);
imagefilledrectangle($im, 0, 0, 299, 99, $white);
imagefilledrectangle($im, 0, 0, 99, 99, $white);

// Set the brush
imagesetbrush($im, $php);
Expand Down
3 changes: 2 additions & 1 deletion reference/image/functions/imagesetthickness.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,14 @@
<programlisting role="php">
<![CDATA[
<?php

// Create a 200x100 image
$im = imagecreatetruecolor(200, 100);
$white = imagecolorallocate($im, 0xFF, 0xFF, 0xFF);
$black = imagecolorallocate($im, 0x00, 0x00, 0x00);

// Set the background to be white
imagefilledrectangle($im, 0, 0, 299, 99, $white);
imagefilledrectangle($im, 0, 0, 199, 99, $white);

// Set the line thickness to 5
imagesetthickness($im, 5);
Expand Down