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

search for in the

Imagick::edgeImage> <Imagick::destroy
Last updated: Sun, 25 Nov 2007

view this page in

Imagick::drawImage

(No version information available, might be only in CVS)

Imagick::drawImage — Renders the ImagickDrawing object on the current image

Description

bool Imagick::drawImage ( ImagickDraw $drawing_wand )
Warning

Αυτή η συνάρτηση επί του παρόντος δεν είναι τεκμηριωμένη, μόνο ο κατάλογος των argument της είναι διαθέσιμος.

Warning

Αυτή η συνάρτηση είναι ΔΟΚΙΜΑΣΤΙΚΗ. Η συμπεριφορά της, το όνομα της και οτιδήποτε άλλο είναι τεκμηριωμένο σχετικά με αυτή την συνάρτηση μπορεί να αλλάξει χωρίς ειδοποίηση σε μελλοντικές εκδόσεις της PHP. Χρησιμοποιήστε αυτή την συνάρτηση με δικό σας ρίσκο.

Renders the ImagickDrawing object on the current image.

Parameters

drawing_wand

Return Values

Returns TRUE on success.



add a note add a note User Contributed Notes
Imagick::drawImage
sualk at lednew dot de
30-Sep-2008 04:34
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 php_gtk2.so is loaded.

Code to reproduce the failure:

#!/usr/bin/php5
<?php
dl
("php_gtk2.so"); // comment this for a second try

$string = "Hello world!";

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

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

$draw->setFontSize(28);

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

$draw->annotation(0,25,$string);

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

$im->writeImage("./test.png");
?>

Imagick::edgeImage> <Imagick::destroy
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites