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 difference between echo and print in php?
What is the use of session and cookies in php?
When to use single quotes, double quotes, and backticks?
Hi all,, im completely new to PHP, started learning just 2 days before. Can anybody tell me how to run a PHP file to see the program's output? i have created some simple program in Dreamweaver CS3 but don't know how to run it...
How to update memcached when you make changes to php?
Which function(s) in PHP computes the difference of arrays?
What is the difference between echo and print statement?
11 Answers Rushmore Consultancy,
Can I use php in visual studio?
How to set a page as a home page in a php based site?
What is compact function php?
What is crypt () in php?
Is it possible to get the screen resolution and like with php?