color Attribute | Color Property

Sets or retrieves the value of the color applied with the filter.

Syntax

HTML
{ filter:progid:DXImageTransform.Microsoft.filter-name(
    color = sColor ... ) ... }
Scripting
object.filters.item(
    "DXImageTransform.Microsoft.filter-name").Color [ = sColor ]

Possible Values

sColor Variant that specifies or receives the color value.

The property is read/write. The property has no default value for all objects with the following exceptions:

Chroma #FF0000FF
DropShadow #FF404040
Glow #FF0000
MaskFilter #FF000000

Remarks

Color is expressed in #AARRGGBB format, where AA is the alpha opacity hexadecimal value, RR is the red hexadecimal value, GG is the green hexadecimal value, and BB is the blue hexadecimal value. For more information about the range of color values supported by Microsoft Internet Explorer 4.0 and later, see Color Table.

The Glow filter is limited to to the #RRGGBB format for the Color property. The applied radiance effect is always opaque.

The following table describes the effect of the Color property when applied to different filters.

Chroma filter Specifies the color applied to the chromakey transparency.
DropShadow filter Specifies the color of the drop-shadow effect.
Glow filter Specifies the color of the radiance applied to the object.
MaskFilter filter Specifies the color that is applied to transparent regions.

Applies To

Chroma, DropShadow, Glow, MaskFilter