Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: swf_pushmatrix - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

swf_removeobject" width="11" height="7"/> <swf_posround
Last updated: Mon, 05 Feb 2007

view this page in

swf_pushmatrix

(PHP 4)

swf_pushmatrix — 現在の変換行列をスタックに入れる

説明

void swf_pushmatrix ( void )

現在の変換行列をスタックに入れます。

返り値

値を返しません。



add a note add a note User Contributed Notes
swf_pushmatrix
greg at newtechy dot com
17-Aug-2001 11: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.

swf_removeobject" width="11" height="7"/> <swf_posround
Last updated: Mon, 05 Feb 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites