GoLang ImagickDraw::setStrokeDashArray

request it (167)
GoLang replacement for PHP's ImagickDraw::setStrokeDashArray [edit | history]

Do you know a GoLang replacement for PHP's ImagickDraw::setStrokeDashArray? Write it!

PHP ImagickDraw::setStrokeDashArray

PHP original manual for ImagickDraw::setStrokeDashArray [ show | php.net ]


(PECL imagick 2.0.0)

ImagickDraw::setStrokeDashArraySpecifies the pattern of dashes and gaps used to stroke paths


bool ImagickDraw::setStrokeDashArray ( array $dashArray )

This function is currently not documented; only its argument list is available.

Specifies the pattern of dashes and gaps used to stroke paths. The strokeDashArray represents an array of numbers that specify the lengths of alternating dashes and gaps in pixels. If an odd number of values is provided, then the list of values is repeated to yield an even number of values. To remove an existing dash array, pass a zero number_elements argument and null dash_array. A typical strokeDashArray_ array might contain the members 5 3 2.



array of floats

Return Values

Returns TRUE on success.


Example #1 ImagickDraw::setStrokeDashArray()

function setStrokeDashArray($strokeColor$fillColor$backgroundColor) {

$draw = new \ImagickDraw();







$image = new \Imagick();

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