|
|
Filter object
DescriptionThis
object contains all the properties for all filters. The filter.name property
specifies the type of filter, and determines which properties are
applicable to each filter. See filter.name.
To return
the filter list for an object or objects, use document.getFilters().
To apply filters to an object or objects, use document.setFilters().
See document.getFilters() and document.setFilters().
Property summaryThe following properties
can be used with the Filter object:
Property
|
Description
|
filter.angle
|
A float value that specifies the angle of
the shadow or highlight color, in degrees.
|
filter.blurX
|
A float value that specifies the amount
to blur in the x direction, in pixels.
|
filter.blurY
|
A float value that specifies the amount
to blur in the y direction.
|
filter.brightness
|
A float value that specifies the brightness
of the filter.
|
filter.color
|
A string, hexadecimal value, or integer
that represents the filter color.
|
filter.contrast
|
A float value that specifies the contrast
value of the filter.
|
filter.distance
|
A float value that specifies the distance
between the filter’s effect and an object, in pixels.
|
filter.enabled
|
A Boolean value that specifies whether the
specified filter is enabled.
|
filter.hideObject
|
A Boolean value that specifies whether the
source image is hidden.
|
filter.highlightColor
|
A string, hexadecimal value, or integer
that represents the highlight color.
|
filter.hue
|
A float value that specifies the hue of
the filter.
|
filter.inner
|
A Boolean value that specifies whether the
shadow is an inner shadow.
|
filter.knockout
|
A Boolean value that specifies whether the
filter is a knockout filter.
|
filter.name
|
Read-only; a string that specifies the type
of filter.
|
filter.quality
|
A string that specifies the blur quality.
|
filter.saturation
|
A float value that specifies the saturation
value of the filter.
|
filter.shadowColor
|
A string, hexadecimal value, or integer
that represents the shadow color.
|
filter.strength
|
An integer that specifies the percentage
strength of the filter.
|
filter.type
|
A string that specifies the type of bevel
or glow.
|
|