<?php
bool public ImagickDraw::rectangle(
float $x1,
float $y1,
float $x2,
float $y2
);
?>
<?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 = 200.0;
$x1 = $y1 = 100;
$x2 = $y2 = 200;
$draw = new ImagickDraw();
$draw->setStrokeWidth($stroke_width);
$draw->setStrokeColor($stroke_color);
$draw->setFillColor($fill_color);
// ...
$draw->rectangle($x1, $y1, $x2, $y2);
// ...
// continues on the next page...
?>