Skip to content

Blur Processor

The Blur processor gives you a way to blur and image to the amount desired.

Blur

Properties

BlurAmount - double

Gets or sets the blur amount.

BlurringLocation - BlurLocation

Gets or sets the blurring location. Default value is BlurLocation.Full, but the following enum can be used:

public enum BlurLocation
{
    Full,
    Inside
}

Example Usage

Xaml

<Image.Effects>
    <auroraEffects:ImageProcessingEffect>
        <auroraEffects:ImageProcessingEffect.ImageProcessingEffects>
            <auroraImageProcessing:Blur BlurringLocation="Full" BlurAmount="5" />
        </auroraEffects:ImageProcessingEffect.ImageProcessingEffects>
    </auroraEffects:ImageProcessingEffect>
</Image.Effects>

C#

var imageProcessingEffect = new Aurora.Effects.ImageProcessingEffect();

imageProcessingEffect.ImageProcessingEffects.Add(
    new Aurora.ImageProcessing.Blur { BlurAmount = 7, BlurringLocation = Aurora.ImageProcessing.Blur.BlurLocation.Inside }
);

image.Effects.Add(imageProcessingEffect);