1.::SWF::Filter(3)     User Contributed Perl Documentation    .::SWF::Filter(3)
2
3
4

NAME

6       SWF::Filter - SWF filter class
7

SYNOPSIS

9               use SWF::Blur;
10               use SWF::Shadow;
11               use SWF::Constants qw(:Filter);
12               @color= (12,45,99);
13               $blur = new SWF::Blur(15, 15, 2);
14               $shadow = new SWF::Shadow(2.5, 12, 2);
15               $filter = SWF::Filter::newDropShadowFilter( \@color,
16                         $blur, $shadow, SWF_FILTER_MODE_KO);
17               $displayitem->addFilter( $filter);
18

DESCRIPTION

20       Filter objects are available since player version 8. They can be
21       applied to buttons, movieclips and text instances by the addFilter()
22       method of SWF::DisplayItem objects. Several types of filters exist.
23       Each of them has its own method of construction, see below.
24

METHODS

26       newDropShadowFilter($colorref, $blur, $shadow, $flags)
27           Creates a DropShadowFilter object. The object is controlled by
28           color, blur object, shadow object and flags (SWF_FILTER_MODE_INNER,
29           SWF_FILTER_MODE_KO).
30
31       newBlurFilter($blur)
32           Creates a BlurFilter object. The object is controlled by the blur
33           object.
34
35       newGlowFilter($colorref, $blur, $strength, $flags)
36           Creates a GlowFilter object, a simple variant of DropShadowFilter.
37           Use SWF_FILTER_MODE_INNER, SWF_FILTER_MODE_KO as flag values.
38
39       newBevelFilter($shadow_colorref, $highlight_colorref, $blur, $shadow,
40       $flags)
41           Just another (complex) variant of DropShadowFilter.  Use
42           SWF_FILTER_MODE_INNER, SWF_FILTER_MODE_KO or FILTER_MODE_ONTOP as
43           flag values.
44
45       newGradientGlowFilter($gradient, $blur, $shadow, $flags)
46           Just another (more complex) variant of DropShadowFilter.  As flag
47           use SWF_FILTER_MODE_INNER, SWF_FILTER_MODE_KO or
48           SWF_FILTER_MODE_ONTOP .
49
50       newGradientBevelFilter($gradient, $blur, $shadow, $flags)
51           Just another (slightly more complex) variant of DropShadowFilter,
52           extending newBevelFilter() by using a gradient instead of simple
53           colors.  Use SWF_FILTER_MODE_INNER, SWF_FILTER_MODE_KO or
54           FILTER_MODE_ONTOP as flag values.
55
56       newColorMatrixFilter($filtermatrix)
57           The filtermatrix is an object of SWF::FilterMatrix class sized 5
58           columns x 4 rows for RGBA values, useful for transformations like
59           color conversion to greyscale pictures.
60
61       newConvolutionFilter($filtermatrix, $divisor, $bias, $colorref, $flags)
62           Another filter for nice picture effects like blur etc.  The
63           filtermatrix is an object of SWF::FilterMatrix class.  As flag use
64           either use SWF_FILTER_FLAG_CLAMP or SWF_FILTER_FLAG_PRESERVE_ALPHA.
65

AUTHOR

67               developers of
68               ming.sourceforge.net
69

SEE ALSO

71       SWF, SWF::Filter, SWF::Blur, SWF::Shadow, SWG::Gradient,
72       SWF::FilterMatrix, SWF::DisplayItem, SWF::Constants, SWF::MovieClip,
73       SWF::Button
74
75
76
77perl v5.30.0                      2019-10-02                 .::SWF::Filter(3)
Impressum