filter - Invert() (Filter/visual)

A visual filter for inverting image colors.


JScript - 3.0
Internet Explorer - 4.0

This visual filter inverts the color value of every pixel in the filtered element.

There are several color models that could be used for this. The display is based around the RGB model and a printout would use the CMY or CMYK model. Inverting either of these would yield a different effect.

So, the browser will invert the colors using the HSV model. This should work consistently across all display mediums.

HSV stands for Hue, Saturation and Value (which means brightness or luminosity in most cases).

The Hue value is represented by a color wheel where the colors are specified on an angular basis from 0 to 360 degrees. Opposite sides of the wheel yield complementary colors.

The Saturation value defines the amount of color. No color at all yields a purely grayscale appearance.

The Value or lightness axis defines how bright the pixel is.

So inverting a pixel using HSV will perform these operations on discrete components of the color value:-

Using this model to invert the pixels in an element should make it stand out clearly against a background.

There are no properties defined for this filter at present.

The use of this filter is now deprecated in favor of the BasicImage() filter that was implemented with the IE 5.5 browser.


See also:filter - BasicImage(), Filter object, style.filter