note 115044 added to imagick.fximage
| From: | thomasgf22 at NOSPAM dot gmail dot com | Date: | Fri, 16 May 2014 14:00:38 +0000 |
| Subject: | note 115044 added to imagick.fximage | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199552@lists.php.net to get a copy of this message | ||
Beware that fxImage return value's type is a new object(Imagick), opposing the current
documentation (boolean). Therefore it does not affect the caller object. Example:
<?php
$canvas = new Imagick();
$canvas->newImage(256, 256, "white", "jpg");
$gradient = new Imagick();
$gradient->newPseudoImage(256, 256, "gradient:white-black");
$canvas->compositeImage( $gradient, imagick::COMPOSITE_OVER, 0, 0 );
$canvas->rotateImage(new ImagickPixel(), 90);
/*instead of just $canvas->fxImage("floor(s*10+0.5)/10"); we must store
fxImage()'s result*/
$canvas= $canvas->fxImage("floor(s*10+0.5)/10");
header( "Content-Type: image/jpg" );
echo $canvas;
?>
----
Server IP: 72.52.91.14
Probable Submitter: 189.45.198.209
----
Manual Page -- http://php.net/manual/en/imagick.fximage.php
Edit -- https://master.php.net/note/edit/115044
Del: integrated -- https://master.php.net/note/delete/115044/integrated
Del: useless -- https://master.php.net/note/delete/115044/useless
Del: bad code -- https://master.php.net/note/delete/115044/bad+code
Del: spam -- https://master.php.net/note/delete/115044/spam
Del: non-english -- https://master.php.net/note/delete/115044/non-english
Del: in docs -- https://master.php.net/note/delete/115044/in+docs
Del: other reasons-- https://master.php.net/note/delete/115044
Reject -- https://master.php.net/note/reject/115044
Search -- https://master.php.net/manage/user-notes.php