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
Php error constants and their descriptions
What is smarty?
What is reference variable php?
What are the functions to be used to get the image's properties (size, width and height)?
What does csrf token mean?
How to check your php installation?
What is the major php security hole? How to avoid?
Why do we need abstract class in php?
What is $_ request in php?
What is a static method php?
Is php used in 2019?
What is overloading and overriding in php?
Explain the difference between array_merge() and array_combine()?
Which function is used in php to search a particular value in an array?
Tell me what is the use of the function htmlentities?