XRay Attribute | XRay

HTML (DHTML)

XRay Attribute | XRay Property

Internet Development Index

Sets or retrieves the value that indicates whether the content is displayed as a grayscale defined by the complement of the average red and green component values.

Syntax

HTML
{ filter:progid:DXImageTransform.Microsoft.BasicImage(
    XRay = bXRay ... ) ... }
Scripting
object.filters.item(
    "DXImageTransform.Microsoft.BasicImage").XRay [ = bXRay ]

Possible Values

bXRayBoolean that specifies or receives one of the possible values.
1Display content in grayscale, using the complement of the average red and green component values.
0Default. Display content with normal RGB values.

The property is read/write. The property has a default value of 0.

Example

This sample sets the BasicImage filter to display a the content of a DIV element in grayscale, using the complement of the average red and green component values.

<!-- This DIV is the target container for an image.  -->
<DIV ID="oDiv" STYLE="position:absolute; left:270px; color:tan;" >
An Image - >
<IMG SRC='../common/earglobe.gif' />
</DIV>
<BUTTON onclick=" oDiv.style.filter=
'progid:DXImageTransform.Microsoft.BasicImage(XRay=1)'">
Show XRay</BUTTON><BR/>
<BUTTON onclick="oDiv.style.filter=''">Clear Filter</BUTTON><BR/>

Applies To

BasicImage