BlurBitmapEffect.KernelType Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.


Note: This API is now obsolete. The non-obsolete alternative is BlurEffect. Gets or sets the type of blur kernel to use for the BlurBitmapEffect.

Namespace:   System.Windows.Media.Effects
Assembly:  PresentationCore (in PresentationCore.dll)

public KernelType KernelType { get; set; }

Property Value

Type: System.Windows.Media.Effects.KernelType

The type of blur kernel. The default value is Gaussian.

Identifier field


Metadata properties set to true


The following example shows how to specify the KernelType of a BlurBitmapEffect.

<Page xmlns=""

    <Button  Width="200">You Can't Read This!

      <!-- <BitmapEffectGroup> would go here if you wanted to apply more 
             then one effect to the Button. However, in this example only  
             one effect is being applied so BitmapEffectGroup does not need  
             to be included. -->

        <!-- The larger the Radius, the more blurring. The default range is 20.
             In addition, the KernelType is set to a box kernel. A box kernel
             creates less disruption (less blur) then the default Gaussian kernel. -->
        <BlurBitmapEffect Radius="10" KernelType="Box" />




.NET Framework
Available since 3.0
Return to top