How can I add text to an image?
Answer Posted / jude jeevanraj.p
There is a built in function to add text to an image. The
tricky bit is knowing the parameters.
It is not worth learning these, therefore take note of them
from an existing example or the manual each time that you
need to write text with PHP!
The function used to do this using TrueType fonts is called
imagettftext and take a deep breath as here come the
parameters:
array imagettftext ( resource $image, float $size, float
$angle, int $x, int $y, int $color, string $fontfile,
string $text )
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is lazy loading in php?
How To Get the Uploaded File Information in the Receiving Script?
How break and continue while loop in php?
What is php sequence?
Explain what are the two main string operators?
Why framework is used in php?
Explain soundex() and metaphone().
Why do we use htaccess and where?
What is difference between web service and api?
What is the use of magic function in php?
What is difference between echo and print in php?
Explain converting an object?
Why super () is used in java?
What is strcmp?
How does php and apache work?