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 could I install codeignitor ?
Where is php code written?
What are the string function in php?
in PHP for pdf which library used?
What is php limit?
Explain difference between urlencode and urldecode?
Tell me what is the default session time in php?
How to retrieve the original query string?
Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?
Will a comparison of an integer 12 and a string "13" work in php?
What is beforeRender() used?
Why does php need server?
What is meant by pear in php? What is the purpose of it?
What is split function in php?
Explain me what are the 3 scope levels available in php and how would you define them?