cvs: phpdoc /en/reference/image/functions imagecolorat.xml imagedashedline.xml imagepsfreefont.xml imagesavealpha.xml
| From: | Kalle Sommer Nielsen | Date: | Thu, 21 Aug 2008 05:45:07 +0000 |
| Subject: | cvs: phpdoc /en/reference/image/functions imagecolorat.xml imagedashedline.xml imagepsfreefont.xml imagesavealpha.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2067@lists.php.net to get a copy of this message | ||
kalle Thu Aug 21 05:45:07 2008 UTC
Modified files:
/phpdoc/en/reference/image/functions imagecolorat.xml
imagedashedline.xml
imagepsfreefont.xml
imagesavealpha.xml
Log:
* Added var_dump() call on imagecolorat() example to make the output as expected
* Added missing ; in the 2nd example on imagedashedline()
* Added example for imagesavealpha()
* Added example for imagepsfreefont()
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/image/functions/imagecolorat.xml?r1=1.9&r2=1.10&diff_format=u
Index: phpdoc/en/reference/image/functions/imagecolorat.xml
diff -u phpdoc/en/reference/image/functions/imagecolorat.xml:1.9
phpdoc/en/reference/image/functions/imagecolorat.xml:1.10
--- phpdoc/en/reference/image/functions/imagecolorat.xml:1.9 Tue Aug 5 07:32:04 2008
+++ phpdoc/en/reference/image/functions/imagecolorat.xml Thu Aug 21 05:45:06 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
<refentry xml:id="function.imagecolorat" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagecolorat</refname>
@@ -67,6 +67,8 @@
$r = ($rgb >> 16) & 0xFF;
$g = ($rgb >> 8) & 0xFF;
$b = $rgb & 0xFF;
+
+var_dump($r, $g, $b);
?>
]]>
</programlisting>
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/image/functions/imagedashedline.xml?r1=1.11&r2=1.12&diff_format=u
Index: phpdoc/en/reference/image/functions/imagedashedline.xml
diff -u phpdoc/en/reference/image/functions/imagedashedline.xml:1.11
phpdoc/en/reference/image/functions/imagedashedline.xml:1.12
--- phpdoc/en/reference/image/functions/imagedashedline.xml:1.11 Wed Aug 20 00:08:24 2008
+++ phpdoc/en/reference/image/functions/imagedashedline.xml Thu Aug 21 05:45:06 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.11 $ -->
+<!-- $Revision: 1.12 $ -->
<refentry xml:id="function.imagedashedline" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagedashedline</refname>
@@ -125,7 +125,7 @@
IMG_COLOR_TRANSPARENT,
IMG_COLOR_TRANSPARENT,
IMG_COLOR_TRANSPARENT
- )
+ );
imagesetstyle($im, $style);
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/image/functions/imagepsfreefont.xml?r1=1.12&r2=1.13&diff_format=u
Index: phpdoc/en/reference/image/functions/imagepsfreefont.xml
diff -u phpdoc/en/reference/image/functions/imagepsfreefont.xml:1.12
phpdoc/en/reference/image/functions/imagepsfreefont.xml:1.13
--- phpdoc/en/reference/image/functions/imagepsfreefont.xml:1.12 Tue Aug 5 07:32:05 2008
+++ phpdoc/en/reference/image/functions/imagepsfreefont.xml Thu Aug 21 05:45:06 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.12 $ -->
+<!-- $Revision: 1.13 $ -->
<refentry xml:id="function.imagepsfreefont" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagepsfreefont</refname>
@@ -37,6 +37,27 @@
&return.success;
</para>
</refsect1>
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title><function>imagepsfreefont</function> example</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// Load a .pfb font file
+$font = imagepsloadfont('./bchbi.pfb');
+
+// Do any operations with the font here
+
+// Free the font from memory
+imagepsfreefont($font);
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
<refsect1 role="notes">
&reftitle.notes;
¬e.config.t1lib;
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/image/functions/imagesavealpha.xml?r1=1.14&r2=1.15&diff_format=u
Index: phpdoc/en/reference/image/functions/imagesavealpha.xml
diff -u phpdoc/en/reference/image/functions/imagesavealpha.xml:1.14
phpdoc/en/reference/image/functions/imagesavealpha.xml:1.15
--- phpdoc/en/reference/image/functions/imagesavealpha.xml:1.14 Thu Jul 31 08:29:45 2008
+++ phpdoc/en/reference/image/functions/imagesavealpha.xml Thu Aug 21 05:45:06 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.14 $ -->
+<!-- $Revision: 1.15 $ -->
<refentry xml:id="function.imagesavealpha" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagesavealpha</refname>
@@ -49,6 +49,34 @@
&return.success;
</para>
</refsect1>
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title><function>imagesavealpha</function> example</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// Load a png image with alpha channels
+$png = imagecreatefrompng('./alphachannel_example.png');
+
+// Do required operations
+
+// Turn off alpha blending and set alpha flag
+imagealphablending($png, false);
+imagesavealpha($png, true);
+
+// Output image to browser
+header('Content-Type: image/png');
+
+imagepng($png);
+imagedestroy($png);
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
<refsect1 role="notes">
&reftitle.notes;
¬e.gd.2;