(PECL imagick 2, PECL imagick 3)

Imagick::drawImageBelirtilen ImagickDraw nesnesini görüntüye uygular


public Imagick::drawImage(ImagickDraw $işlem): bool

Belirtilen ImagickDraw nesnesini görüntüye uygular.

Bağımsız Değişkenler


Görüntüye uygulanacak çizim işlemi.

Dönen Değerler

Başarı durumunda true döner.

add a note

User Contributed Notes 2 notes

blah at blub dot com
14 years ago
If your imagick lib begins to say: "Non-conforming drawing primitive...", it could be that your locale are not correctly set. please locate all your setlocale and kill them temporary so you could check it that would solve the problem.
sualk at lednew dot de
15 years ago
the ImagickDraw (v 2.2.0) seems to disharmonise with PHP-GTK2 (v 2.0.1).

The rendering of an ImagickDraw object on the current image fails (resp. results in a flat image without drawings), if is loaded.

Code to reproduce the failure:

(""); // comment this for a second try

$string = "Hello world!";

$im = new Imagick();
$draw = new ImagickDraw();

$draw->setFillColor(new ImagickPixel('blue'));


$metrix = $im->queryFontMetrics($draw, $string);


$im->newImage($metrix['textWidth'],$metrix['textHeight'], new ImagickPixel('white'));
$im->borderImage(new ImagickPixel('black'), 1, 1);

To Top