The SWFFill object allows you to transform (scale, skew, rotate) bitmap and gradient fills. SWFFill objects are created by the SWFShape addFill methods.
SWFFill_moveTo(f, x, y);Move fill origin to (x,y) in global coordinates.
SWFFill_scaleTo(f, x, y);Set fill scale to x in the x-direction, y in the y-direction.
SWFFill_rotateTo(f, degrees);Set fill rotation to degrees degrees.
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.
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.