Imagick::setStrokeColor


wizard apg

SETS the color used for stroking object outlines.



<?php

bool 
public ImagickDraw::setStrokeColor(
                                         
ImagickPixel $stroke_pixel
                                                                     
);

?>

$stroke_pixel


The stroke 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'// black
$stroke_width the float value

$draw 
= new ImagickDraw();

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

// continues on the next page...

?>