MaskColor

Sets or retrieves the color used to mask transparent content of an object.

Examples

This sample sets the BasicImage filter to mask the content of a DIV element.

<!-- This DIV is the target container for an image.  -->        
    <DIV ID="oDiv" STYLE="position:absolute; left:270px;filter:
        progid:DXImageTransform.Microsoft.BasicImage(mask=1)" >
        An Image - >    
        <IMG SRC='/workshop/graphics/earglobe.gif' />
    </DIV>
<BUTTON onclick=" oDiv.filters.item(0).MaskColor = 0Xff0000">
    Red Mask</BUTTON><BR/>
<BUTTON onclick=" oDiv.filters.item(0).MaskColor = 0X00ff00">
    Green Mask</BUTTON><BR/>
<BUTTON onclick=" oDiv.filters.item(0).MaskColor = 0X0000ff">
    Blue Mask</BUTTON><BR/>

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

DLL

Dxtmsft.dll