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 |
Explain me what is the meaning of a persistent cookie?
How to find a specific value in an array?
How do you check if a variable has been set in php?
Is false empty php?
What is the difference between html and php?
Does php 7 support mysql?
What language is php written in?
What is the best way to avoid email sent through php getting into the spam folder?
what is the default session expire time in php? what is default file attachment size in mail in php?
How to compare two strings with comparison operators in php?
What is meant by nl2br()?
How long should a session last?