Page 1 of 1

Composite

Posted: 2007-07-17T19:14:00-07:00
by phyxsius
i have a small question.

Code: Select all

$image1 = new Imagick();
$image1->readImage("1.jpg");
$image2 = new Imagick();
$image2->readImage("2.jpg");

$imageDraw = new ImagickDraw();

$imageDraw->composite($COMPOSITE_OVER, 50,50,800,800,$image2);
$imageDraw->render();

$image1->drawImage($imageDraw);
$image1->writeImage("out.jpg);
what am i doing wrong?? out.jpg is identic with 1.jpg :(
how does the composite works??