note 77306 added to function.imagick-annotateimage

From: Date: Thu, 23 Aug 2007 19:37:15 +0000
Subject: note 77306 added to function.imagick-annotateimage
Groups: php.notes 
Request: Send a blank email to php-notes+get-129736@lists.php.net to get a copy of this message
If ImagickDraw::setGravity ( int $gravity ) has been set, e,g; with $gravity= imagick::GRAVITY_CENTER. Then, the x and y values offset the text from where the gravity setting would have placed it. If the example included: $draw->setGravity (Imagick::GRAVITY_CENTER); $image->annotateImage($draw, 10, 45, 0, 'The quick brown fox jumps over the lazy dog'); The text would be rendered to the right 10px and down 45px from the center. Gravity constants are very useful as they can save having to calculate the placement of variable text strings and font sizes. ---- Server IP: 209.41.74.194 Probable Submitter: 69.255.41.127 ---- Manual Page -- http://www.php.net/manual/en/function.imagick-annotateimage.php Edit -- https://master.php.net/note/edit/77306 Del: integrated -- https://master.php.net/note/delete/77306/integrated Del: useless -- https://master.php.net/note/delete/77306/useless Del: bad code -- https://master.php.net/note/delete/77306/bad+code Del: spam -- https://master.php.net/note/delete/77306/spam Del: non-english -- https://master.php.net/note/delete/77306/non-english Del: in docs -- https://master.php.net/note/delete/77306/in+docs Del: other reasons-- https://master.php.net/note/delete/77306 Reject -- https://master.php.net/note/reject/77306 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#129736) next »