Opacity

Sets or retrieves the opacity level that is applied to the content of an object.

Examples

This sample exposes an image's background text using the Opacity property of the BasicImage filter.


<!-- This DIV is the target container for an image.  -->        
    <DIV ID="oDiv" STYLE="position:absolute; left:270px;" >
        An Image - >    
        <IMG SRC='/workshop/graphics/earglobe.gif' />
    </DIV>
<BUTTON onclick="oDiv.style.filter=
        'progid:DXImageTransform.Microsoft.BasicImage(opacity=.2)'">
    Opaque</BUTTON><BR/>
<BUTTON onclick="oDiv.style.filter=''">Clear Filter</BUTTON> 
Click the Opaque button, and the text can be seen through the opaque DIV element.



Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

DLL

Dxtmsft.dll

 

 

Show: