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
Which cryptographic functions in php returns the longest hash value?
Where can I find php ini file?
How to connect to a url in php?
Which is not a php magic constant?
What is a lambda function in php?
What is the difference between array_map () and array_shift ()?
What does sign mean php?
Write down the code for saving an uploaded file in PHP.
Tell us how to set cookies in php?
What is active record in php?
What is meant by pear in php? What is the purpose of it?
What is the difference between require and include in php?
How do you destroy a session?
Tell me are parent constructors called implicitly inside a class constructor?
Explain what is the use of "echo" in php?