How can I add text to an image?



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

Post New Answer

More PHP Interview Questions

If we login more than one browser windows at the same time with same user and after that we close one window, then is the session is exist to other windows or not? And if yes then why? If no then why?

0 Answers  


What are the advantages of stored procedures in php?

0 Answers  


Tell me are parent constructors called implicitly inside a class constructor?

0 Answers  


Is it easy to learn php?

0 Answers  


how to track user logged out or not? when a user is idle?

0 Answers  






What is null value in php?

0 Answers  


Why php script is not running in browser?

0 Answers  


What is file upload?

0 Answers  


What does the array operator '===' means?

0 Answers  


What are the array functions in php?

0 Answers  


What are the advantages of php mysql?

0 Answers  


i have designed a registration form in html (registration.html) and to insert user details in database i have designed a submit form in php (submit_registration.php) but when i click on submit button in registration.html it opens a dialogue box which asks for open or save php(submit_registration.php) even though i have already installed apache HTTP server and php version 5 on my computer and i am using mysql as backend. plz suggest me what should i do????

3 Answers  


Categories