1.::SWF::CXform(3) User Contributed Perl Documentation .::SWF::CXform(3)
2
3
4
6 SWF::CXform - SWF CXform class
7
9 use SWF::CXform;
10 $cxf = new SWF::CXform();
11 $cxf->setColorAdd(100, 200, 30.5 , -50);
12 $dispitem->setCXform($cxf);
13
15 SWF::CXform is a helper class useful for color transformations on
16 SWF::DisplayItem objects.
17
19 new SWF::CXform( [ $rAdd ], [ $gAdd ], [ $bAdd ], [ $aAdd ], [ $rMult
20 ], [ $gMult ], [ $bMult ], [$aMult] )
21 Creates a CXform object. The object is controlled by a parameter
22 list of RGBA values both for addition and multiplication. All of
23 them are optional, but could be set later via setColorAdd() and
24 setColorMult() methods. Default values for the xAdd parameters are
25 0, and for xMult defaults are 1. Use the created object as
26 parameter for transformations on SWF::DisplayItem objects.
27
28 setColorAdd($rAdd, $gAdd, $bAdd, $aAdd)
29 Set addition values of a CXform object.
30
31 setColorMult($rMult, $gMult, $bMult, $aMult)
32 Set multiplication values of a CXform object.
33
35 developers of
36 ming.sourceforge.net
37
39 SWF, SWF::DisplayItem, SWF::Filter
40
41
42
43perl v5.32.1 2021-01-26 .::SWF::CXform(3)