SWFShape->drawLine

(no version information, might be only in CVS)

SWFShape->drawLine -- Draws a line (relative)

Description

void swfshape->drawline ( int dx, int dy )

警告

本函数是实验性的。本函数的行为,包括函数名称以及其它任何关于本函数的文档可能会在没有通知的情况下随 PHP 以后的发布而改变。使用本函数风险自担。

swfshape->drawline() draws a line (using the current line style set by swfshape->setline()) from the current pen position to displacement (dx,dy).

See also swfshape->movepento(), swfshape->drawcurveto(), swfshape->movepen() and swfshape->drawlineto().


add a note add a note User Contributed Notes
lexmanspam at laposte dot net
27-Jul-2005 03:07
see  drawLineTo (http://fr2.php.net/manual/en/function.swfshape.drawlineto.php) to get more help with this error
robert at peakepro dot com
16-May-2004 02:28
<?PHP
$SWFShape
->drawline(0,3276);
?>

works, whereas:

<?PHP
$SWFShape
->drawline(0,3277);
?>

gives:

Fatal error: drawline(): failed assertion

in Ming 0.21a. This seems to be reproduceable independent of the movie dimensions.
dsward at webnation dot com
04-Dec-2002 03:37
If you receive a failed assertion error when using Ming's DrawLine function, try splitting the line into two or more smaller segments.