Partilhar via


pixelRadius Attribute | PixelRadius Property

This topic documents a feature of Visual Filters and Transitions, which is deprecated as of Windows Internet Explorer 9.

Sets or retrieves the radius of the area of opaque content around a pixel that is affected by the Blur filter.

Syntax

HTML
{ filter:progid:DXImageTransform.Microsoft.Blur(
    pixelRadius = flRadius ... ) ... }
Scripting
object.filters.item(
    "DXImageTransform.Microsoft.Blur").PixelRadius [ = flRadius ]

Possible Values

flRadius Floating-point that specifies or receives the following possible values.
1.0 - 100.0
Radius, in pixels, of the area affected by blurring.
2.0
Default.

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

Remarks

When PixelRadius is set to a value between 0.0 and 1.0 pixels, the filter is ignored. When it is set to a value greater than 100 pixels, the property defaults to 2.0 pixels.

Example

This example places a shadow under the content of a DIV object. The DIV object is duplicated. The first DIV object displays the shadow, and the second DIV object is unfiltered.

    <DIV ID="oDiv" STYLE="position:absolute; left:70px; filter: 
            progid:DXImageTransform.Microsoft.blur(pixelradius=3.0, makeshadow='true', ShadowOpacity=1.0)" >
        An image - >    
        <IMG SRC='/workshop/graphics/earglobe.gif' />
    </DIV>
    <DIV ID="oDiv" STYLE="position:absolute; left:70px; " >
        An image - >    
        <IMG SRC='/workshop/graphics/earglobe.gif' />
    </DIV>


Applies To

Blur

See Also

ShadowOpacity, MakeShadow, Scripting Filters, Filter Design Considerations