Home > PHP > Function > > ImagickDraw::polygon()

ImagickDraw::polygon()

ImagickDraw::polygon - Draws a polygon

Syntax

bool ImagickDraw::polygon (array $coordinates)

Arguments

  • coordinates - multidimensional array like array( array( \'x\' => 3, \'y\' => 4), array( \'x\' => 2, \'y\' => 6));

Description

Draws a polygon using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.

Version

PHP PECL imagick 2.0.0

Return value

Returns TRUE on success.