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 does the unset() function means?
What are the uses of explode() function?
Explain about getters and setters in php?
How to get elements in reverse order of an array in php?
What is session in c#?
What are php variables?
How do I start a php session?
What is url encoding and decoding in php?
What is overloading and overriding in php?
What are the differences between mysqli_connect and mysqli_pconnect?
How to turn on the session support in php?
Do you know is it possible to extend the execution time of a php script?
What is a query in a database?
Describe PHP error and logging information?
> symbol is used to redirect the output of a command. State Whether True or False?