cvs: peardoc /en/package/images image-canvas.xml /en/package/images/image-canvas example.xml

From: Date: Sat, 25 Nov 2006 15:29:39 +0000
Subject: cvs: peardoc /en/package/images image-canvas.xml /en/package/images/image-canvas example.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8870@lists.php.net to get a copy of this message
cweiske Sat Nov 25 15:29:39 2006 UTC Modified files: /peardoc/en/package/images image-canvas.xml /peardoc/en/package/images/image-canvas example.xml Log: Fixing Image_Canvas things: - Remove strang characters at beginning of file - one ID was wrong, still used http instead of image - programlistings should be in CDATA sections http://cvs.php.net/viewvc.cgi/peardoc/en/package/images/image-canvas.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/en/package/images/image-canvas.xml diff -u peardoc/en/package/images/image-canvas.xml:1.1 peardoc/en/package/images/image-canvas.xml:1.2 --- peardoc/en/package/images/image-canvas.xml:1.1 Sat Nov 25 12:41:42 2006 +++ peardoc/en/package/images/image-canvas.xml Sat Nov 25 15:29:39 2006 @@ -1,12 +1,18 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <sect1 id="package.images.image-canvas"> <title>Image_Canvas</title> <para> - This package provides a common interface to image drawing, making image source code independent on the library used. It includes output drivers for JPEG and PNG (using the GD library) as well as for PDF and SVG. - - A list of the supported drawing functions is available on an <ulink url="http://pear.veggerby.dk/wiki/image_canvas">external site</ulink>. + This package provides a common interface to image drawing, making + image source code independent on the library used. + It includes output drivers for JPEG and PNG (using the GD library) + as well as for PDF and SVG. </para> - &package.http.image-canvas.example; + <para> + A list of the supported drawing functions is available on an + <ulink url="http://pear.veggerby.dk/wiki/image_canvas">external site</ulink>. + </para> + + &package.images.image-canvas.example; </sect1> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/peardoc/en/package/images/image-canvas/example.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/en/package/images/image-canvas/example.xml diff -u peardoc/en/package/images/image-canvas/example.xml:1.1 peardoc/en/package/images/image-canvas/example.xml:1.2 --- peardoc/en/package/images/image-canvas/example.xml:1.1 Sat Nov 25 12:42:57 2006 +++ peardoc/en/package/images/image-canvas/example.xml Sat Nov 25 15:29:39 2006 @@ -1,20 +1,20 @@ -<!-- $Revision: 1.1 $ --> -<refentry id="package.http.image-canvas.intro"> +<!-- $Revision: 1.2 $ --> +<refentry id="package.images.image-canvas.intro"> <refnamediv> <refname>Example</refname> <refpurpose> Usage example for <classname>Image_Canvas</classname> </refpurpose> </refnamediv> - <refsect1 id="package.http.image-canvas.example.example"> + <refsect1 id="package.images.image-canvas.example.example"> <title>Example</title> <example> <title>Generation of a sample image in PNG format</title> - <programlisting role="php"> -include_once 'Image/Canvas.php'; + <programlisting role="php"><![CDATA[ +require_once 'Image/Canvas.php'; // change the output format with the first parameter of factory() -$Canvas =&amp; Image_Canvas::factory('png', array('width' => 400, 'height' => 300)); +$Canvas =& Image_Canvas::factory('png', array('width' => 400, 'height' => 300)); $Canvas->setLineColor('black'); $Canvas->rectangle(array('x0' => 0, 'y0' => 0, 'x1' => 399, 'y1' => 299)); @@ -44,7 +44,7 @@ $Canvas->image(array('x' => 398, 'y' => 298, 'filename' => './pear-icon.png', 'alignment' => array('horizontal' => 'right', 'vertical' => 'bottom'))); $Canvas->show(); - </programlisting> +]]></programlisting> </example> </refsect1> </refentry>

« previous php.pear.doc (#8870) next »