note 92241 added to function.imagickdraw-setfontsize
| From: | jgsujith at in dot com | Date: | Wed, 15 Jul 2009 13:23:02 +0000 |
| Subject: | note 92241 added to function.imagickdraw-setfontsize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-158339@lists.php.net to get a copy of this message | ||
$sourceFile='in.jpg';
$textWrite='God is Great';
$x=50;
$y=50;
$fontColor='#000000';
$fontSize=34;
$colorPix=new ImagickPixel ($fontColor);
$image=new Imagick ($sourceFile);
$draw=new ImagickDraw();
$draw->setFontSize($fontSize);//Sets the font pointsize to use when annotating with text
$draw->setFillColor($colorPix);//Sets the fill color to be used for drawing filled objects
$image->annotateImage($draw,$x,$y,0,$textWrite);//Annotates an image with text
$image->writeImage('out.jpg');//Writes an image to the specified filename
----
Server IP: 59.162.86.33
Probable Submitter: 125.17.19.5
----
Manual Page -- http://www.php.net/manual/en/function.imagickdraw-setfontsize.php
Edit -- https://master.php.net/note/edit/92241
Del: integrated -- https://master.php.net/note/delete/92241/integrated
Del: useless -- https://master.php.net/note/delete/92241/useless
Del: bad code -- https://master.php.net/note/delete/92241/bad+code
Del: spam -- https://master.php.net/note/delete/92241/spam
Del: non-english -- https://master.php.net/note/delete/92241/non-english
Del: in docs -- https://master.php.net/note/delete/92241/in+docs
Del: other reasons-- https://master.php.net/note/delete/92241
Reject -- https://master.php.net/note/reject/92241
Search -- https://master.php.net/manage/user-notes.php