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
How do you define a constant in php?
Explain me what is the goto statement useful for?
Why overriding is called runtime polymorphism?
Tell me what sized websites have you worked on in the past?
What is php date function?
What are the difference between echo and print?
What is abstract class in php?
What does $_cookie mean?
What is the importance of parser in php?
How variables are passed through arguments?
Why php is used in html?
What is global array in php?
What is memcache?
What should we do to be able to export data into an excel file?
How to read and display a HTML source from the website url?