Re: Can't Get Text To Display When Annotating or Drawing
Posted: 2007-06-28T09:48:38-07:00
I'm not familiar with PHP but I think what might be happening is that the Gravity isn't being set and it therefore defaults to Northwest. This would then draw your text just above the top of the image so that it won't show. Try moving the text with:
and see if it shows up. If it does, then the Gravity is the problem.
BTW. Why do you set the pixelwand colour and then not use it in the DrawSetFillColor() function? That might also be the problem if the colour isn't being set and defaults to black so that you're drawing black text on a black background
Pete
Code: Select all
MagickAnnotateImage($mwand,$dwand,100,50,0,"Flower");
BTW. Why do you set the pixelwand colour and then not use it in the DrawSetFillColor() function? That might also be the problem if the colour isn't being set and defaults to black so that you're drawing black text on a black background
Pete