PHP Doku:: Draw a line - function.swf-shapelineto.html

Verlauf / Chronik / History: (8) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzNon-Text MIME-AusgabenShockwave FlashSWF Funktionenswf_shapelineto

Ein Service von Reinhard Neidl - Webprogrammierung.

SWF Funktionen

<<swf_shapelinesolid

swf_shapemoveto>>

swf_shapelineto

(PHP 4)

swf_shapelinetoDraw a line

Description

void swf_shapelineto ( float $x , float $y )

The swf_shapeLineTo() draws a line to the x,y coordinates given by the x parameter & the y parameter. The current position is then set to the x,y parameters.


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
mathe at bluemento dot de
15.09.2003 17:58
I did make other experience with this function:

swf_startshape ($this->gButton);
  swf_addcolor(0,0,0,0);
  swf_shapelinesolid(1,0,0,0,5);
  swf_shapefillsolid($r,$g,$b,1);
  swf_shapemoveto(0,10);
  swf_shapelineto(60,10);
  swf_shapelineto(60,-5);
  swf_shapelineto(-35,-5);
  swf_shapelineto(-35,10);
swf_endshape($this->gButton);

Here, swf_shapelineto doesnt set the given values to the
current position. In case this would not build a rectangle -
but it does.



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)