note 93784 deleted from function.imagickpixel-setcolor by danbrown

From: Date: Tue, 29 Sep 2009 15:34:07 +0000
Subject: note 93784 deleted from function.imagickpixel-setcolor by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-161147@lists.php.net to get a copy of this message
Note Submitter: iamthadiyan at gmail dot com ---- $image = new Imagick("foo.jpg"); $draw = new ImagickDraw(); $pixel = new ImagickPixel(); // set alignment $draw->setTextAlignment(Imagick::ALIGN_CENTER); // set font $draw->setFont("Arial"); // set font size $draw->setFontSize(20); // set font color $pixel->setColor("#323232"); $draw->setFillColor($pixel); $xcord=200; $ycord=400; $rotationangle=45; $image->annotateImage($draw, $xcord,$ycord, $rotationangle, "writing text on an image with 45 degree rotation");

« previous php.notes (#161147) next »