note 93518 added to function.imagickdraw-bezier
| From: | zombiebovine at gmail dot com | Date: | Mon, 14 Sep 2009 10:43:38 +0000 |
| Subject: | note 93518 added to function.imagickdraw-bezier | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-160538@lists.php.net to get a copy of this message | ||
How to use:
<?php
$width = 200;
$height = 200;
$border = 2;
$img = new Imagick();
$img->newImage( $width, $height, new ImagickPixel( 'transparent' ) );
$draw = new ImagickDraw();
$draw->setStrokeColor( new ImagickPixel( 'black' ) );
$draw->setStrokeWidth( 2 );
$draw->setFillColor( new ImagickPixel( 'transparent' ) );
// will fail in an obscure manner if the input data is invalid
$points = array
(
array( 'x' => 0, 'y' => 200 ),
array( 'x' => 0, 'y' => 0 ),
array( 'x' => 200, 'y' => 200 ),
array( 'x' => 200, 'y' => 0 )
);
$draw->bezier($points);
$img->drawImage( $draw );
$img->setImageFormat( "png" );
header( "Content-Type: image/png" );
echo $img;
?>
----
Server IP: 209.41.74.194
Probable Submitter: 80.176.178.153
----
Manual Page -- http://www.php.net/manual/en/function.imagickdraw-bezier.php
Edit -- https://master.php.net/note/edit/93518
Del: integrated -- https://master.php.net/note/delete/93518/integrated
Del: useless -- https://master.php.net/note/delete/93518/useless
Del: bad code -- https://master.php.net/note/delete/93518/bad+code
Del: spam -- https://master.php.net/note/delete/93518/spam
Del: non-english -- https://master.php.net/note/delete/93518/non-english
Del: in docs -- https://master.php.net/note/delete/93518/in+docs
Del: other reasons-- https://master.php.net/note/delete/93518
Reject -- https://master.php.net/note/reject/93518
Search -- https://master.php.net/manage/user-notes.php