1.::SWF::Fill(3) User Contributed Perl Documentation .::SWF::Fill(3)
2
3
4
6 SWF::Fill - SWF fill class
7
9 use SWF::Fill;
10 usw SWF::Shape;
11 $shape = new SWF::Shape();
12 $fill = $shape->addGradientFill($gradient,SWFFILL_LINEAR_GRADIENT);
13
15 There is no object constructor because SWF::Fill objects are always
16 returned by method calls of SWF::Shape objects, like
17
18 $fill = $shape->addSolidFill($r, $g, $b, $a);
19 $fill = $shape->addGradientFill($gradient, flags);
20 $fill = $shape->addBitmapFill($bitmap, $flag);
21
22 You can now modify that SWF::Fill object using following methods.
23
25 None of the following methods is designed or useful for solid fill
26 objects, because it does not make any sense to rotate or scale a solid
27 fill.
28
30 $fill->moveTo($x, $y)
31 Move $fill to ($x, $y) in global co-ordinates.
32
33 $fill->scaleTo($x [,$y])
34 Set $fill scale to $x in the x-direction and $y in the y-direction.
35 If $y is not specified, $y=$x is assumed.
36
37 $fill->scale($x [,$y])
38 Multiply $fill scale by $x in the x-direction and $y in the
39 y-direction. If $y is not specified, $y=$x is assumed.
40
41 $fill->rotateTo($degrees)
42 Set $fill rotation to $degrees.
43
44 $fill->rotate($degrees)
45 Rotate $fill by $degrees.
46
47 $fill->skewX($x)
48 Add $x to the current x-skew.
49
50 $fill->skewXTo($x)
51 Set x-skew to $x. 1.0 is 45-degree forward slant. More is more
52 forward while less is more backward.
53
54 $fill->skewY($y)
55 Add $y to the current y-skew.
56
57 $fill->skewYTo($y)
58 Set y-skew to $y. 1.0 is 45-degree upward slant. More is more
59 upward while less is more downward.
60
61 $fill->setMatrix($a, $b, $c, $d, $e, $f)
62 Do an operation of rotating/skewing (b,c), moving (e,f) and scaling
63 (a,d) at once. The default initial values of an SWF::Fill object's
64 matrix are 1.0, 0, 0, 1.0, 0, 0 . So calling setMatrix with these
65 defaults (setMatrix(1.0, 0, 0, 1.0, 0, 0);) will reset results of
66 earlier calls of SWF::Fill methods (like rotate(45) etc. etc.)
67
69 developers of
70 ming.sourceforge.net
71
73 SWF, SWF::Shape, SWF::DisplayItem, SWF::Constants
74
75
76
77perl v5.28.1 2018-11-12 .::SWF::Fill(3)