(PECL imagick 2, PECL imagick 3)

ImagickDraw::pathStartDeclares the start of a path drawing list


public ImagickDraw::pathStart(): bool

Diese Funktion ist bis jetzt nicht dokumentiert. Es steht nur die Liste der Parameter zur Verfügung.

Declares the start of a path drawing list which is terminated by a matching DrawPathFinish() command. All other DrawPath commands must be enclosed between a and a DrawPathFinish() command. This is because path drawing commands are subordinate commands and they do not function by themselves.


Es wird kein Wert zurückgegeben.


Beispiel #1 ImagickDraw::pathStart() example

function pathStart($strokeColor, $fillColor, $backgroundColor) {

$draw = new \ImagickDraw();



$draw->pathMoveToAbsolute(50, 50);
$draw->pathLineToAbsolute(100, 50);
$draw->pathLineToRelative(0, 50);

$draw->pathMoveToAbsolute(50, 50);
$draw->pathMoveToRelative(300, 0);
$draw->pathLineToRelative(50, 0);

$draw->pathMoveToAbsolute(50, 300);
$draw->pathCurveToAbsolute(50, 300, 100, 200, 300, 300);

$imagick = new \Imagick();
$imagick->newImage(500, 500, $backgroundColor);


header("Content-Type: image/png");


add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top