Comunitatea PHP Romania
 

 
SWFShape

SWFShape

(PHP 4 >= 4.0.5)

SWFShape -- Creates a new shape object.

Description

new swfshape ( void )

Avertisment

Această funcție este EXPERIMENTALĂ. Comportamentul acestei funcții, numele funcției, și orice altceva documentat despre această funcție ar putea fi schimbate fară un anunț prealabil, intr-o viitoare versiune PHP. V-am avertizat, deci folosiți această extensie pe riscul dv.

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.

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

Ultimele discutii in forum RSS Forum

Ultimele articole Ultimele articole

Top membri

Pirahna Pirahna
la birou
carco carco
Bucuresti
Birkoff Birkoff
Bucuresti
mihaitha mihaitha
Sibiu
Mascka Mascka
Braila
gabysolomon gabysolomon
Bacau
whooper whooper
Toronto ON
raul_ raul_
dechim dechim
Drobeta Turnu Severin
Amenthes Amenthes

Newsletter


Email:
 inscriere
 renuntare
 
 Arhiva newsletter

Parteneriat

Copyright © 2001-2009 PHP Romania Add PHPRomania to Google Add PHPRomania to Del.icio.us Add PHPRomania to Stumbleupon Add PHPRomania to Yahoo! Add PHPRomania to Digg Add PHPRomania to Blink Cheap Hosting | Mortgage | Bankruptcy | Personal Loans | Debt Consolidation
Ads: Partener Way2Web Nework: gazduire web | inregistrare domenii | web design | imobiliare | web hosting
Powered by Simplis