rotating text

Status
Nicht offen für weitere Antworten.

kaits

Mitglied
hello

dows someone know how to rotate text 180 degrees?
for example I have the following text: HELLO WORLD
now I need to rotate it 180 degrees and show the result

is it possible with PHP or GD Library or something else?

please help, I need to rotate the text 180 degrees :(
 
-

Hi Kaits!

example:
PHP:
<?php
header("Content-type: image/png");
$image = imagecreate( 200, 50 );
$farbe = imagecolorallocate($image, 0, 0, 0);
$rot = imagecolorallocate( $image, 250, 0,0);
imagettftext($image, 14, 180, 180, 25, $rot, "ARIAL.TTF", "HELLO WORL");
imagepng($image);
?>
You can select the angle, as the text is to be spent.

array imagettftext(int im, int size, int angle, int x, int y, int col, string fontfile, string text)
 
Zuletzt bearbeitet:
ps, you can spean also in german, I understand it 100% but I cannot write in german :p


but this example generates an image, I need to rotate text 180 degrees and the result should be also tet, not an image :(

I think it's not possible with php, should be css or javascript?
 
Do you really mean "rotate" text or "reverse" it?

Hello -> olleH

Like that funny page that is a Reverse-Google =) ???

There should be no way to rotate normal text.
 
ok einfach:

$txt = "180 turn of text";

echo "<table><tr><td>";

for ($lo=0;$lo<strlen($txt);$lo++) {
echo "$txt[$lo]<br>"; }

echo "</td></tr></table>";
 
Status
Nicht offen für weitere Antworten.
Zurück