iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-11-2004, 09:57 AM
WebProWorld New Member
 
Join Date: Mar 2004
Location: EarthPlanet
Posts: 2
Nasimov RepRank 0
Default Php image.

Hello,

I want to load text from a .txt file on the web and put it on to an image. How can I do that in php?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 03-12-2004, 08:09 PM
httpman's Avatar
WebProWorld Pro
 
Join Date: Aug 2003
Location: France
Posts: 124
httpman RepRank 0
Default

Hello,

You have to use the "ImageString()" function.
It takes a few parameters :

ImageString(im,font,x,y,text,color)

where :
* im = the image handle
* font = a font number between 1 & 5 (these are predefined fonts within PHP). Here you can also use TrueType or Postcript fonts, but let's start with the first step...
* x, y = coordinates
* color = font color

Take a look at http://www.php.net and use the "search for" box on the top-right corner.

To use any other font - much better - just use that "imageloadfont()" function. Now your last choice should be : aliased or unaliased text ?

JP
__________________
www.net-createurs.com [ french only website sorry ! ]
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:05 PM.



Search Engine Optimization by vBSEO 3.3.0