Connecting Tech Pros Worldwide Help | Site Map

rotate text

 
LinkBack Thread Tools Search this Thread
  #1  
Old April 10th, 2007, 01:15 PM
ojorus
Guest
 
Posts: n/a
Default rotate text

Hi! I wonder if anyone has a quick example on how to rotate text 30 degrees
with PHP. I believe the best way to do this is create an image with the
text, and then rotate the image..? I would appreciate a practic example on
this,or any other method which will do the work.

Regards ojorus



  #2  
Old April 10th, 2007, 02:55 PM
Krustov
Guest
 
Posts: n/a
Default Re: rotate text

<comp.lang.php>
<ojorus>
<Tue, 10 Apr 2007 15:08:32 +0200>
<461b8c52$1@news.broadpark.no>
Quote:
Hi! I wonder if anyone has a quick example on how to rotate text 30 degrees
with PHP. I believe the best way to do this is create an image with the
text, and then rotate the image..? I would appreciate a practic example on
this,or any other method which will do the work.
>
You could try a google search on how to create a image code as more
often than not the text on the image code will be rotated .

  #3  
Old April 10th, 2007, 07:25 PM
Richard Brooks
Guest
 
Posts: n/a
Default Re: rotate text

ojorus said the following on 10/04/07 14:08:
Quote:
Hi! I wonder if anyone has a quick example on how to rotate text 30 degrees
with PHP. I believe the best way to do this is create an image with the
text, and then rotate the image..? I would appreciate a practic example on
this,or any other method which will do the work.
>
Regards ojorus
Try looking up a captcha script, some use what you're after.


Richard.


--
"Initiative is punishable."
Russian business saying.
  #4  
Old April 12th, 2007, 04:15 PM
ipluta@wp.pl
Guest
 
Posts: n/a
Default Re: rotate text

On Apr 10, 3:08 pm, "ojorus" <ojo...@hotmail.comwrote:
Quote:
Hi! I wonder if anyone has a quick example on how to rotate text 30 degrees
with PHP. I believe the best way to do this is create an image with the
text, and then rotate the image..? I would appreciate a practic example on
this,or any other method which will do the work.
>
Regards ojorus
draw the text in an image and then

imagerotate($image, $angle, $background_color);

as described here:
http://us.php.net/manual/en/function.imagerotate.php

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.