filter - Emboss() (Filter/visual)

Displays the image content of the HTML element as if it were an embossed effect.

Availability:

JScript - 5.5
Internet Explorer - 5.5
Object properties:Enabled, Bias
Supported by objects:A, ACRONYM, ADDRESS, B, BDO, BIG BLOCKQUOTE, body, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FONT, FORM, FRAME, FRAMESET, Hn, I, IFRAME, IMG, INPUT, INS, KBD, LABEL, LEGEND, LI, MARQUEE, MENU, NOBR, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TD, TEXTAREA, TH, TT, U, UL, VAR, XMP

The grayscale values of the image are used as a height map, and an image is generated by using this height map with a light source to cast a shadow. The result is a grayscale image.

The following properties are supported:

The example shows the application of an Emboss filter to an image. However when running tests, the Bias value did not seem to have any visible effect on MSIE 5.5 running on Windows 98.

Example code:

   <HTML>

   <HEAD>

   </HEAD>

   <BODY>

   Normal--&gt;

   <IMG ID="NORMAL" SRC="./Logo150.gif">

   Filtered--&gt;

   <IMG ID="MYIMAGE" SRC="./Logo150.gif">

   <BR>

   <SCRIPT>

   myFilter = "progid:DXImageTransform.Microsoft.Emboss()";

   document.all.MYIMAGE.style.filter = myFilter;

   </SCRIPT>

   </BODY>

   </HTML>

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

PropertyJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
Enabled n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/a n/a n/a-
Bias n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/a n/a n/a-