SWFDisplayItem->multColor -- Multiplies the item's color transform.
Description
void swfdisplayitem->multcolor ( [int red [, int green [, int blue [, int a]]]])
Aviso
Esta función
es EXPERIMENTAL. Esto significa que el
comportamiento de esta función, el nombre de esta
función y en definitiva TODO lo documentado sobre esta
función, puede cambiar en una futura version de PHP SIN
AVISO. La advertencia queda hecha, y utilizar esta extensión
queda bajo su propia responsabilidad.
swfdisplayitem->multcolor() multiplies the item's
color transform by the given values.
This simple example will modify your picture's atmospher
to Halloween (use a landscape or bright picture).
Ejemplo 1. swfdisplayitem->multcolor() example
<?php
$b = new SWFBitmap("backyard.jpg"); // note use your own picture :-) $s = new SWFShape(); $s->setRightFill($s->addFill($b)); $s->drawLine($b->getWidth(), 0); $s->drawLine(0, $b->getHeight()); $s->drawLine(-$b->getWidth(), 0); $s->drawLine(0, -$b->getHeight());
$m = new SWFMovie(); $m->setDimension($b->getWidth(), $b->getHeight());