PHP Velho Oeste 2024

SWFDisplayItem::rotate

(PHP 5 < 5.3.0, PECL ming SVN)

SWFDisplayItem::rotateRotation, en coordonnées relatives

Description

SWFDisplayItem::rotate ( float $angle ) : void
Avertissement

Cette fonction est EXPERIMENTALE. Le comportement de cette fonction, son nom, et toute la documentation autour de cette fonction peut changer sans préavis dans une prochaine version de PHP. Cette fonction doit être utilisée à vos risques et périls.

swfdisplayitem::rotate() tourne l'objet curant d'un angle angle (en degrés).

Cet objet peut être un objet swfshape(), un objet swfbutton(), un objet swftext() ou un objet swfsprite(). Il doit être ajouté avec la fonction swfmovie::add().

Valeurs de retour

Aucune valeur n'est retournée.

Voir aussi

add a note add a note

User Contributed Notes 1 note

up
0
alan_k at hklc dot com
22 years ago
if you are looking to place 'rotated text' (not animated)
create the text without a location
then add it to the movie
$di = $movie->add($my_text_object);
then move and rotate the result.
$di->moveto($x,$y);
$di->rotate(90);
To Top