downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

ImagickDraw::setStrokeDashOffset> <ImagickDraw::setStrokeColor
[edit] Last updated: Fri, 17 May 2013

view this page in

ImagickDraw::setStrokeDashArray

(PECL imagick 2.0.0)

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

Descrizione

bool ImagickDraw::setStrokeDashArray ( array $dashArray )
Avviso

Questa funzione, al momento non è documentata; è disponibile soltanto la lista degli argomenti.

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.

Elenco dei parametri

dashArray

array of floats

Valori restituiti

Restituisce TRUE in caso di successo.



add a note add a note User Contributed Notes ImagickDraw::setStrokeDashArray - [1 notes]
up
0
andrew at ierbsolutions dot co dot uk
4 years ago
Example:

<?php
$base_image
= new Imagick('example.png');
$rect = new ImagickDraw();
$rect->setFillColor(new ImagickPixel("#EEEEEE"));
$rect->setFillOpacity(0);
$rect->setStrokeColor(new ImagickPixel("#FF0000"));
$rect->setStrokeDashArray(array(5,5,5));
$rect->rectangle(10, 10, 100, 100);
$base_image->drawImage($rect);

header('Content-type: image/png');
echo
$base_image->getImage();
exit();
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites