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 |
How to remove white spaces from the beginning and/or the end of a string in php?
Tell me how comparison of objects is done in php5?
How to set session.gc_divisor properly?
How can we get the browser properties using PHP?
What is php and its uses?
Is php used anymore?
What is __ construct in php?
What are the different ways to login to a remote server?
Why shouldn't I use mysql_* functions in php?
i am a php programmer can i be a java programmer?
How arrays are used in php?
What are the functions for imap?