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 |
Tell me how can we pass the variable through the navigation between the pages?
Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?
What is session in c#?
How to redirect a url from http to https in .htaccess?
What is the difference between laravel and php?
What is regex in html?
how to add file in php?
Write a function that takes "depth" as argument and return sum of node's data of that depth. For instance, (0) depth 0 / \ (10) (20) depth 1 / \ (40) (50) depth2 If I pass get_sum_by_depth(2) , it would return 90 (i.e. 40 + 50 )
What advance thing in php7?
What are php magic methods/functions?
Why should I learn php?
How do we get the current session id?