EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

Invert Property

Sets or retrieves the value that indicates whether the content is displayed as the complement of the RGB component values.

Syntax

HTML
N/A
Scripting
object.filters.item(
    "DXImageTransform.Microsoft.BasicImage").Invert [ = bInvert ]

Possible Values

bInvert Boolean that specifies or receives one of the following values:
1Display content as the inverse of the RGB 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 invert the RGB values of the content of a DIV element.


<!-- 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(invert=1)'">
    Invert</BUTTON><BR/>
<BUTTON onclick="oDiv.style.filter=''">Clear Filter</BUTTON><BR/>

Applies To

BasicImage

커뮤니티 추가 항목

표시:
© 2014 Microsoft