NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"> SWFShape (PHP 4 >= 4.0.5)
SWFShape -- æ–°è¦ã«è¼ªéƒã‚ªãƒ–ジェクトを作æˆã™ã‚‹
説明 new
swfshape ( void)
è¦å‘Š ã“ã®é–¢æ•°ã¯ã€
実験的 ãªã‚¹ãƒ†ãƒ¼ã‚¿ã‚¹ã«ã‚りã¾ã™ã€‚ã“れã¯ã€ã“ã®é–¢æ•°ã®
動作ã€é–¢æ•°åã€ã“ã“ã§æ›¸ã‹ã‚Œã¦ã„ã‚‹ã“ã¨å…¨ã¦ãŒPHPã®å°†æ¥ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§äºˆå‘Š
ãªã変更ã•れるå¯èƒ½æ€§ãŒã‚ã‚‹ã“ã¨ã‚’æ„味ã—ã¾ã™ã€‚注æ„ã‚’å–šèµ·ã™ã‚‹ã¨ã¨ã‚‚ã«è‡ªåˆ†
ã®ãƒªã‚¹ã‚¯ã§ã“ã®é–¢æ•°ã‚’使用ã—ã¦ä¸‹ã•ã„。
swfshape() creates a new shape object.
SWFShape has the following methods : swfshape->setline() ,
swfshape->addfill() , swfshape->setleftfile() ,
swfshape->setrightfile() , swfshape->movepento() ,
swfshape->movepen() , swfshape->drawlineto() ,
swfshape->drawline() , swfshape->drawcurveto()
et swfshape->drawcurve() .
This simple example will draw a big red elliptic quadrant.
例 1swfshape() example
<?php
$s = new SWFShape();
$s->setLine(40, 0x7f, 0, 0);
$s->setRightFill($s->addFill(0xff, 0, 0));
$s->movePenTo(200, 200);
$s->drawLineTo(6200, 200);
$s->drawLineTo(6200, 4600);
$s->drawCurveTo(200, 4600, 200, 200);
$m = new SWFMovie();
$m->setDimension(6400, 4800);
$m->setRate(12.0);
$m->add($s);
$m->nextFrame();
header('Content-type: application/x-shockwave-flash');
$m->output();
?>