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 string and its function?
How to pass variables by references?
How do I get csrf token?
Who developed php?
Explain what is meant by pear in php?
What is php and features of php?
What are php loops?
How can I increase my website session?
Write a program to find the factorial of a number in php?
Explain me what is the meaning of a persistent cookie?
How to get no of arguments passed to a PHP Function?
What is difference between Method overriding and overloading in PHP?
Require_once(), require(), include(). What is difference between them?
Explain the difference between require() and require_once()?
What does the unset() function mean?