note 110347 added to function.cairo-surface-write-to-png
| From: | emadovesky at yahoo dot com | Date: | Sun, 14 Oct 2012 12:17:36 +0000 |
| Subject: | note 110347 added to function.cairo-surface-write-to-png | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-191284@lists.php.net to get a copy of this message | ||
this is a good example
<?php
$s = new CairoImageSurface(CairoFormat::ARGB32, 400, 400);
$c = new CairoContext($s);
$c->fill();
$c->setSourceRGB(1, 0, 0);
$c->setLineWidth(100);
$c->arc(200, 200, 100, 0, 2 * M_PI);
$c->stroke();
$c->setSourceRGB(0, 0, 0.6);
$c->rectangle(0, 160, 400, 75);
$c->fill();
$s->writeToPng(dirname(__FILE__) . '/test.png') or die ("error");
?>
----
Server IP: 69.147.83.199
Probable Submitter: 41.131.193.110
----
Manual Page -- http://www.php.net/manual/en/function.cairo-surface-write-to-png.php
Edit -- https://master.php.net/note/edit/110347
Del: integrated -- https://master.php.net/note/delete/110347/integrated
Del: useless -- https://master.php.net/note/delete/110347/useless
Del: bad code -- https://master.php.net/note/delete/110347/bad+code
Del: spam -- https://master.php.net/note/delete/110347/spam
Del: non-english -- https://master.php.net/note/delete/110347/non-english
Del: in docs -- https://master.php.net/note/delete/110347/in+docs
Del: other reasons-- https://master.php.net/note/delete/110347
Reject -- https://master.php.net/note/reject/110347
Search -- https://master.php.net/manage/user-notes.php