GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SWF::FILL (3)

.ds Aq ’

NAME

SWF::Fill - SWF fill class

CONTENTS

SYNOPSIS



        use SWF::Fill;
        usw SWF::Shape;
        $shape = new SWF::Shape();
        $fill = $shape->addGradientFill($gradient,SWFFILL_LINEAR_GRADIENT);



DESCRIPTION

There is no object constructor because SWF::Fill objects are always returned by method calls of SWF::Shape objects, like



        $fill = $shape->addSolidFill($r, $g, $b, $a);
        $fill = $shape->addGradientFill($gradient, flags);
        $fill = $shape->addBitmapFill($bitmap, $flag);



You can now modify that SWF::Fill object using following methods.

NOTE

None of the following methods is designed or useful for solid fill objects, because it does not make any sense to rotate or scale a solid fill.

METHODS

$fill->moveTo($x, $y) Move $fill to ($x, $y) in global co-ordinates.
$fill->scaleTo($x [,$y]) Set $fill scale to $x in the x-direction and $y in the y-direction. If $y is not specified, $y=$x is assumed.
$fill->scale($x [,$y]) Multiply $fill scale by $x in the x-direction and $y in the y-direction. If $y is not specified, $y=$x is assumed.
$fill->rotateTo($degrees) Set $fill rotation to $degrees.
$fill->rotate($degrees) Rotate $fill by $degrees.
$fill->skewX($x) Add $x to the current x-skew.
$fill->skewXTo($x) Set x-skew to $x. 1.0 is 45-degree forward slant. More is more forward while less is more backward.
$fill->skewY($y) Add $y to the current y-skew.
$fill->skewYTo($y) Set y-skew to $y. 1.0 is 45-degree upward slant. More is more upward while less is more downward.
$fill->setMatrix($a, $b, $c, $d, $e, $f) Do an operation of rotating/skewing (b,c), moving (e,f) and scaling (a,d) at once. The default initial values of an SWF::Fill object’s matrix are 1.0, 0, 0, 1.0, 0, 0 . So calling setMatrix with these defaults (setMatrix(1.0, 0, 0, 1.0, 0, 0);) will reset results of earlier calls of SWF::Fill methods (like rotate(45) etc. etc.)

AUTHOR



        developers of
        ming.sourceforge.net



SEE ALSO

SWF, SWF::Shape, SWF::DisplayItem, SWF::Constants
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 .::SWF::FILL (3) 2015-05-15

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.