Page 1 of 1

textureImage

Posted: 2008-07-23T04:51:37-07:00
by marc_gfx
I assume Imagick::textureImage is to create a repetetive texture. I just have not been able to find out how to use it.

My goal is to fill an area with my specified texture and them overlay an image with transparency (png). My current test setup looks like this:

$bim = new Imagick('b.png');//background
$tim = new Imagick('t.png');//texture
$oim = new Imagick('o.png');//overlay

$color->setColor("rgb(0,255,0)");
$bim->borderImage($color,10,10);
$bim->textureImage( $tim );
$bim->compositeImage( $oim,Imagick::COMPOSITE_OVER,0,0);

The result is an image with green border and background, with my background image and then my composite image on top. no texture.

Re: textureImage

Posted: 2008-07-23T04:56:51-07:00
by marc_gfx
damn... I have been trying to solve this problem for about 2 hours. now I post it here, I think I've found a solution:

http://valokuva.org/?p=102