Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can I add text to an image?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the unset() function means?

1119


What are the uses of explode() function?

1052


Explain about getters and setters in php?

1064


How to get elements in reverse order of an array in php?

1021


What is session in c#?

986


What are php variables?

973


How do I start a php session?

986


What is url encoding and decoding in php?

1099


What is overloading and overriding in php?

1161


What are the differences between mysqli_connect and mysqli_pconnect?

1004


How to turn on the session support in php?

967


Do you know is it possible to extend the execution time of a php script?

1045


What is a query in a database?

1015


Describe PHP error and logging information?

1079


> symbol is used to redirect the output of a command. State Whether True or False?

1152