PHP Doku:: Push the current transformation matrix back unto the stack - function.swf-pushmatrix.html

Verlauf / Chronik / History: (4) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzNon-Text MIME-AusgabenShockwave FlashSWF Funktionenswf_pushmatrix

Ein Service von Reinhard Neidl - Webprogrammierung.

SWF Funktionen

<<swf_posround

swf_removeobject>>

swf_pushmatrix

(PHP 4)

swf_pushmatrix Push the current transformation matrix back unto the stack

Description

void swf_pushmatrix ( void )

The swf_pushmatrix() function pushes the current transformation matrix back onto the stack.


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
greg at newtechy dot com
17.08.2001 4:30
This function saves the current transformation settings on the stack so that you can restore it later if you need to.  You can restore it with the popmatrix function.  For example, if you run this code:

// save the current transformation matrix
swf_pushmatrix();

// translate this object
swf_definefont(3, "Mod");
swf_fontsize(5);
swf_definetext(3, "Hello", 1);
swf_translate(50, 50, 0);
swf_placeobject(3, 50);

// reload the last saved transformation matrix
swf_popmatrix();

swf_showframe();

Only the text "Hello" will be transformed to that location on the animation.  At first when I started using this library I didn't know what this did, but this is what I've found so far.  It can be very useful in animation.



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)