pixelRadius Attribute | PixelRadius

HTML (DHTML)

pixelRadius Attribute | PixelRadius Property

Internet Development Index

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

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

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

Remarks

When the PixelRadius is set to a value between 0.0 to 1.0 pixels, the filter is ignored. When it is set to a value above 100 pixels, the property 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, while the second 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='../common/earglobe.gif' />
</DIV>
<DIV ID="oDiv" STYLE="position:absolute; left:70px; " >
An image - >
<IMG SRC='../common/earglobe.gif' />
</DIV>

Applies To

Blur

See Also

ShadowOpacity, MakeShadow, Scripting Filters, Filter Design Considerations