Filters can be applied to any element.
Available filters are : BevelFilter , BlurFilter , DropShadowFilter , GlowFilter
Usage:
BevelFilter:
<el elem=”examp_el_set” x=”38.3%” y=”20″ filters=”true” >
<filters>
<f filter_type=”BevelFilter”
distance=”4″
angleInDegrees=”45″
highlightColor=”0xFFFFFF”
highlightAlpha=”1″
shadowColor=”0×000000″
shadowAlpha=”1″
blurX=”4″
blurY=”4″
strength=”1″
quality=”1″
type=”inner”
knockout=”" />
</filters>
</el>
Parameters
distance:Number [optional] – The offset distance of the bevel, in pixels (floating point). The default value is 4.
angle:Number [optional] – The angle of the bevel, from 0 to 360 degrees. The default value is 45.
highlightColor:Number [optional] – The highlight color of the bevel, 0xRRGGBB. The default value is 0xFFFFFF.
highlightAlpha:Number [optional] – The alpha transparency value of the highlight color. Valid values are 0 to 1. For example, .25 sets a transparency value of 25%. The default value is 1.
shadowColor:Number [optional] – The shadow color of the bevel, 0xRRGGBB. The default value is 0×000000.
shadowAlpha:Number [optional] – The alpha transparency value of the shadow color. Valid values are 0 to 1. For example, 0.25 sets a transparency value of 25%. The default value is 1.
blurX:Number [optional] – The amount of horizontal blur in pixels. Valid values are 0 to 255 (floating point). The default value is 4. Values that are a power of 2 (such as 2, 4, 8, 16 and 32) are optimized to render more quickly than other values.
blurY:Number [optional] – The amount of vertical blur in pixels. Valid values are 0 to 255 (floating point). The default value is 4. Values that are a power of 2 (such as 2, 4, 8, 16 and 32) are optimized to render more quickly than other values.
strength:Number [optional] – The strength of the imprint or spread. The larger the value, the more color is imprinted and the stronger the contrast between the bevel and the background. Valid values are 0 to 255. The default value is 1.
quality:Number [optional] – The number of times to apply the filter. The default value is 1, which is equivalent to low quality. A value of 2 is medium quality, and a value of 3 is high quality.
type:String [optional] – The type of bevel. Valid values are “inner”, “outer”, and “full”. The default value is “inner”.
knockout:Boolean [optional] – Applies a knockout effect (true), which effectively makes the object’s fill transparent and reveals the background color of the document. The default value is false (no knockout).
———————————
BlurFilter:
<el elem=”examp_el_set” x=”71.6%” y=”20″ filters=”true” >
<filters>
<f filter_type=”BlurFilter”
blurX=”4″
blurY=”4″
quality=”1″ />
</filters>
</el>
Initializes the filter with the specified parameters. The default values create a soft, unfocused image.
Parameters
blurX:Number [optional] – The amount to blur horizontally. Valid values are from 0 to 255 (floating-point value). The default value is 4. Values that are a power of 2 (such as 2, 4, 8, 16 and 32) are optimized to render more quickly than other values.
blurY:Number [optional] – The amount to blur vertically. Valid values are from 0 to 255 (floating-point value). The default value is 4. Values that are a power of 2 (such as 2, 4, 8, 16 and 32) are optimized to render more quickly than other values.
quality:Number [optional] – The number of times to apply the filter. The default value is 1, which is equivalent to low quality. A value of 2 is medium quality, and a value of 3 is high quality and approximates a Gaussian blur.
———————————
DropShadowFilter:
<el elem=”examp_el_set” x=”38.3%” y=”C+20″ filters=”true” >
<filters>
<f filter_type=”DropShadowFilter”
distance=”4″
angleInDegrees=”45″
color=”0×000000″
alpha=”1″
blurX=”4″
blurY=”4″
strength=”1″
quality=”1″
inner=”"
knockout=”"
hideObject=”" />
</filters>
</el>
Creates a new DropShadowFilter instance with the specified parameters.
Parameters
distance:Number [optional] – The offset distance for the shadow, in pixels. The default value is 4 (floating point).
angle:Number [optional] – The angle of the shadow, 0 to 360˚ (floating point). The default value is 45.
color:Number [optional] – The color of the shadow, in hexadecimal format 0xRRGGBB. The default value is 0×000000.
alpha:Number [optional] – The alpha transparency value for the shadow color. Valid values are 0 to 1. For example, 0.25 sets a transparency value of 25%. The default value is 1.
blurX:Number [optional] – The amount of horizontal blur. Valid values are 0 to 255 (floating point). The default value is 4. Values that are a power of 2 (such as 2, 4, 8, 16 and 32) are optimized to render more quickly than other values.
blurY:Number [optional] – The amount of vertical blur. Valid values are 0 to 255 (floating point). The default value is 4. Values that are a power of 2 (such as 2, 4, 8, 16 and 32) are optimized to render more quickly than other values.
strength:Number [optional] – The strength of the imprint or spread. The higher the value, the more color is imprinted and the stronger the contrast between the shadow and the background. Valid values are 0 to 255. The default is 1.
quality:Number [optional] – The number of times to apply the filter. Valid values are 0 to 15. The default value is 1, which is equivalent to low quality. A value of 2 is medium quality, and a value of 3 is high quality.
inner:Boolean [optional] – Indicates whether or not the shadow is an inner shadow. A value of true specifies an inner shadow. The default is false, an outer shadow (a shadow around the outer edges of the object).
knockout:Boolean [optional] – Applies a knockout effect (true), which effectively makes the object’s fill transparent and reveals the background color of the document. The default is false (no knockout).
hideObject:Boolean [optional] – Indicates whether or not the object is hidden. A value of true indicates that the object itself is not drawn; only the shadow is visible. The default is false (show the object).
———————————
GlowFilter:
<el elem=”examp_el_set” x=”71.6%” y=”C+20″ filters=”true” >
<filters>
<f filter_type=”GlowFilter”
color=”0xFF0000″
alpha=”1″
blurX=”6″
blurY=”6″
strength=”2″
quality=”1″
inner=”"
knockout=”" />
</filters>
</el>
Initializes a new GlowFilter instance with the specified parameters.
Parameters
color:Number [optional] – The color of the glow, in the hexadecimal format 0xRRGGBB. The default value is 0xFF0000.
alpha:Number [optional] – The alpha transparency value for the color. Valid values are 0 to 1. For example, .25 sets a transparency value of 25%. The default value is 1.
blurX:Number [optional] – The amount of horizontal blur. Valid values are 0 to 255 (floating point). The default value is 6. Values that are a power of 2 (such as 2, 4, 8, 16 and 32) are optimized to render more quickly than other values.
blurY:Number [optional] – The amount of vertical blur. Valid values are 0 to 255 (floating point). The default value is 6. Values that are a power of 2 (such as 2, 4, 8, 16 and 32) are optimized to render more quickly than other values.
strength:Number [optional] – The strength of the imprint or spread. The higher the value, the more color is imprinted and the stronger the contrast between the glow and the background. Valid values are 0 to 255. The default is 2.
quality:Number [optional] – The number of times to apply the filter. Valid values are 0 to 15. The default value is 1, which is equivalent to low quality. A value of 2 is medium quality, and a value of 3 is high quality.
inner:Boolean [optional] – Specifies whether the glow is an inner glow. The value true indicates an inner glow. The default is false, an outer glow (a glow around the outer edges of the object).
knockout:Boolean [optional] – Specifies whether the object has a knockout effect. The value true makes the object’s fill transparent and reveals the background color of the document. The default is false (no knockout effect).