SWFFill

The SWFFill object allows you to transform (scale, skew, rotate) bitmap and gradient fills. SWFFill objects are created by the SWFShape addFill methods.


$f->moveTo($x, $y);
f.moveTo(x, y)
f->moveTo(x, y);
SWFFill_moveTo(f, x, y);

Move fill origin to (x,y) in global coordinates.


$f->scaleTo($x, $y);
f.scaleTo(x, y)
f->scaleTo(x, y);
SWFFill_scaleTo(f, x, y);
Set fill scale to x in the x-direction, y in the y-direction.


$f->rotateTo($degrees);
f.rotateTo(degrees)
f->rotateTo(degrees);
SWFFill_rotateTo(f, degrees);
Set fill rotation to degrees degrees.


$f->skewXTo($x);
f.skewXTo(x)
f->skewXTo(x);
SWFFill_skewXTo(f, x);
Set fill x-skew to x. 1.0 is a 45-degree forward slant. More is more forward, less is more backward.


$f->skewYTo($x);
f.skewYTo(x)
f->skewYTo(x);
SWFFill_skewYTo(f, x);
Set fill y-skew to y. 1.0 is a 45-degree upward slant. More is more upward, less is more downward.


Gradient transform example
Bitmap transform example

back to index


All content Copyright (C) 2000-2002 Opaque Industries except where noted otherwise.