PHP Questions Home
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

How can I add text to an image?


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 )

ASK A QUESTION

More images PHP Questions

Please can any one help me to solve this problem how to comparer two images and show the dissimilarities in third image in php code?

how to rotate an image using php code?

How can I rotate an image?

I have a text query, but I added images (small jpgs), I am not sure but it looks like it is creating/saving the files in a tmp folder each time a visitor requests the query. Is there a efficient way to run a query calling images? I noticed some PHP progr

How can I find the width and height of an image resource?



Custom Search