How can I add text to an image?
Answer / 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 |
What is the difference between indexed and associative array?
Is php used anymore?
How can we destroy the session, how can we unset the variable of a session?
What is the difference between php traits vs interfaces?
What are the functions to be used to get the image's properties (size, width and height)?
How to create a web form?
What is compact function php?
How to write a program to make chess?
What percentage of websites use php?
What is cookie?
What library is used for pdf in php?
How do you remove duplicates from an array?