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.
textureImage
Re: textureImage
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
http://valokuva.org/?p=102