Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MaskColor
Collapse the table of content
Expand the table of content

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

 

 

Show:
© 2015 Microsoft