in reply to Re^2: Centering Text with GD::Image
in thread Centering Text with GD::Image
Of far greater concern, is posting code like:new GD::Image->stringFT(...)
Hi Ken,
Thanks for your wise words and useful link. I don't write this form in code that I formulate from scratch...but, no doubt it came from the GD Documentation. I think, but I'm not sure, that this code actually came from an example somewhere on the web rather than directly from the documentation.
Your memory serves you well!
I did post Adding a watermark to an image with GD::Image some time ago and the code I posted was the same code shared above. The indirect syntax was in the original part and you did mention it at the time...I had no idea what the term meant then and didn't get around to looking at it further as getting the watermark colours (the subject of the question) showing correctly was the priority.
I wouldn't use indirect syntax in code I produce from scratch. I don't know why...I just wouldn't do it that way. I will be sure to look more at the links you shared to find out why I shouldn't do it that way...
Fortunately, the code was helpful to djlerman. Hopefully, he will also look into your links...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Centering Text with GD::Image
by kcott (Archbishop) on Nov 05, 2021 at 07:10 UTC |