Imagick Font Color

Hi E's, I use the code in snippet code for put watermark in the image. In this case the watermark was text ('protected picture') and that text will appear in the center of the picture.
The problem is I don't know how I define the color of the watermark text, always appear in black tone (depend of 'setFillAlpha' can be black to gray).
I want put the watermark text in green color.

Can you tell me how I change the color of watermark text?

Regards, JC
<?php
try
{
    /*** the image file ***/
    $image = 'imagem.jpg';

    /*** a new imagick object ***/
    $im = new Imagick();

    /*** read the image into the object ***/
    $im->readImage( $image );

    /* Create a drawing object and set the font size */
    $draw = new ImagickDraw();

    /*** set the font ***/
    $draw->setFont( "CALIBRI.TTF" );

    /*** set the font size ***/
    $draw->setFontSize( 25 );

    /*** add some transparency ***/
    $draw->setFillAlpha( 10 );

    /*** set gravity to the center ***/
    $draw->setGravity( Imagick::GRAVITY_CENTER );

    /*** overlay the text on the image ***/
    $im->annotateImage( $draw, 0, 0, 25, "protected picture" );

    /**** set to png ***/
    $im->setImageFormat( "jpg" );

    /*** write image to disk ***/
    $im->writeImage( 'imagem2.jpg' );

    echo 'Image Created';
}
catch(Exception $e)
{
    echo $e->getMessage();
}
?>
<img src="imagem2.jpg" />

Open in new window

LVL 3
Pedro ChagasWebmasterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ante0Commented:
$draw->setFillColor( "white" );

would do it, not sure how it works when you have alpha on, as I don't have Imagick installed.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.