cvs: phpdoc /en/reference/imagick examples.xml

From: Date: Thu, 17 Apr 2008 16:45:07 +0000
Subject: cvs: phpdoc /en/reference/imagick examples.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-1516@lists.php.net to get a copy of this message
mkoppanen Thu Apr 17 16:45:07 2008 UTC Modified files: /phpdoc/en/reference/imagick examples.xml Log: Refined the fill pattern example a bit http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/imagick/examples.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/imagick/examples.xml diff -u phpdoc/en/reference/imagick/examples.xml:1.3 phpdoc/en/reference/imagick/examples.xml:1.4 --- phpdoc/en/reference/imagick/examples.xml:1.3 Thu Apr 17 11:31:53 2008 +++ phpdoc/en/reference/imagick/examples.xml Thu Apr 17 16:45:07 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <chapter xml:id="imagick.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.examples; @@ -130,7 +130,7 @@ $draw = new ImagickDraw(); /* Start a new pattern called "gradient" */ -$draw->pushPattern('gradient' , 0 , 0 , 50 , 50); +$draw->pushPattern('gradient', 0, 0, 50, 50); /* Composite the gradient on the pattern */ $draw->composite(Imagick::COMPOSITE_OVER, 0, 0, 50, 50, $im); @@ -145,15 +145,18 @@ $draw->setFontSize(52); /* Annotate some text */ -$draw->annotation(50, 50, "Hello World!"); +$draw->annotation(20, 50, "Hello World!"); -/* Create a new canvas and white image */ +/* Create a new canvas object and a white image */ $canvas = new Imagick(); -$canvas->newImage(350, 200, "white"); +$canvas->newImage(350, 70, "white"); /* Draw the ImagickDraw on to the canvas */ $canvas->drawImage($draw); +/* 1px black border around the image */ +$canvas->borderImage('black', 1, 1); + /* Set the format to PNG */ $canvas->setImageFormat('png');

« previous php.doc.cvs (#1516) next »