note 93765 added to function.imagickdraw-point
| From: | spz at osu1 dot php dot net | Date: | Sun, 27 Sep 2009 06:41:12 +0000 |
| Subject: | note 93765 added to function.imagickdraw-point | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-161106@lists.php.net to get a copy of this message | ||
point($x, $y) uses the FillColor of ImagickDraw! This actually took quite a while, till I found out
that it's falsely documented on these pages. So to draw single pixels, do it like this:
$image = new Imagick();
$draw = new ImagickDraw();
$pixel = new ImagickPixel('red');
$image->newImage(10, 10, 'transparent', 'gif');
// Here comes the magick:
$pixel->setColor($_POST[$i."x".$j]);
$draw->setFillColor($pixel);
$draw->point($i,$j);
$image->drawImage($draw);
$image->writeImages($path, true);
----
Server IP: 219.239.98.206
Probable Submitter: 77.137.39.27
----
Manual Page -- http://www.php.net/manual/en/function.imagickdraw-point.php
Edit -- https://master.php.net/note/edit/93765
Del: integrated -- https://master.php.net/note/delete/93765/integrated
Del: useless -- https://master.php.net/note/delete/93765/useless
Del: bad code -- https://master.php.net/note/delete/93765/bad+code
Del: spam -- https://master.php.net/note/delete/93765/spam
Del: non-english -- https://master.php.net/note/delete/93765/non-english
Del: in docs -- https://master.php.net/note/delete/93765/in+docs
Del: other reasons-- https://master.php.net/note/delete/93765
Reject -- https://master.php.net/note/reject/93765
Search -- https://master.php.net/manage/user-notes.php