SWFShape
(PHP 4 >= 4.0.5)
SWFShape -- Creates a new shape object.
Description
new
swfshape ( void )
주의 |
이 함수는
실험적입니다. 이 함수의 작동, 함수의 이름,
그리고 이 함수에 대해 모든 문서는 이후의 PHP 릴리즈에서 예고 없이
변경할 수 있습니다. 이 함수의 사용에 관한 것은 사용자
책임입니다. |
swfshape() creates a new shape object.
SWFShape has the following methods : swfshape->setline(),
swfshape->addfill(), swfshape->setleftfill(),
swfshape->setrightfill(), swfshape->movepento(),
swfshape->movepen(), swfshape->drawlineto(),
swfshape->drawline(), swfshape->drawcurveto()
and swfshape->drawcurve().
This simple example will draw a big red elliptic quadrant.
예 1. swfshape() 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(); ?>
|
|