PHP 5.6.0 released


(PHP 4)

swf_pushmatrixSalvar la actual transformación de la matriz en la pila


void swf_pushmatrix ( void )

Salva la actual transformación de la matriz en la pila.

Valores devueltos

No devuelve ningún valor.

Ver también

  • swf_popmatrix() - Restaurar el estado anterior de una matriz de transformación

add a note add a note

User Contributed Notes 1 note

greg at newtechy dot com
13 years ago
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

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

// reload the last saved transformation matrix


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.
To Top