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 |
Is php a backend?
What is the use of "echo" in php?
What is the difference between Reply-to and Return-path in the headers of a mail function?
Tell me what type of operation is needed when passing values through a form or an url?
How can we extract string ‘abc.com ‘ from a string info@abc.com" target="_blank">http://info@abc.com using regular expression of php?
What are encryption functions in php?
How many columns can be added in a table in mysql?
How can we extract string 'abc.com' from a string "http://info@abc.com" using regular expression of PHP
Tell me what is the use of mysql_real_escape_string() function?
What is the Pipe Symbol represented?
Why using the htaccess file
How to enable cURL in PHP?