Imagick::setFillColor


wizard apg

SETS the fill color to be used for drawing filled objects.



<?php

bool 
public ImagickDraw::setFillColor(
                                         
ImagickPixel $fill_pixel
                                                                     
);

?>

$fill_pixel


The ImagickPixel to use to set the color.





This function returns a TRUE on success.



  1 EXERCISE   

<?php

// 'color-name', '#XXYYZZ', rgb(X,Y,Z), rbga(X%,Y%,Z%,A), cmyck(X,Y,Z,K)

$stroke_color '#000000';
$fill_color 'red';
$stroke_width 100.2;

$draw = new ImagickDraw();

$draw->setStrokeWidth($stroke_width);
$draw->setStrokeColor($stroke_color);
$draw->setFillColor($fill_color);

// continues on the next page...

?>