PHP Doku:: Creates a new shape object - function.swfshape.construct.html

Verlauf / Chronik / History: (3) anzeigen

Sie sind hier:
Doku-Startseite ≥ PHP-Handbuch ≥ Funktionsreferenz ≥ Non-Text MIME-Ausgaben ≥ Ming (flash) ≥ The SWFShape class ≥ SWFShape->__construct

Ein Service von Reinhard Neidl - Webprogrammierung.

The SWFShape class

<<SWFShape->addFill

SWFShape->drawArc>>

SWFShape->__construct

(PHP 5 <= 5.3.0, PECL ming SVN)

SWFShape->__construct — Creates a new shape object

Beschreibung

SWFShape SWFShape::__construct ( void )
Warnung

Diese Funktion ist EXPERIMENTELL. Das Verhalten, der Funktionsname und alles Andere, was hier dokumentiert ist, kann sich in zukünftigen PHP-Versionen ohne Ankündigung ändern. Seien Sie gewarnt und verwenden Sie diese Funktion auf eigenes Risiko.

Created a new SWFShape object.

Beispiele

This simple example will draw a big red elliptic quadrant.

Beispiel #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();
?>


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



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",...)