Table of Contents

Class DirectionalBlurEffect.Props

Namespace
PaintDotNet.Direct2D1.Effects
Assembly
PaintDotNet.Windows.Core.dll
public sealed class DirectionalBlurEffect.Props : DeviceEffectProperties
Inheritance
DirectionalBlurEffect.Props
Inherited Members

Constructors

Props()

Properties

Angle

The angle of the blur relative to the x-axis, in the counterclockwise direction. The units are specified in degrees. The blur kernel is first generated using the same process as for the Gaussian blur effect. The kernel values are then transformed according to the blur angle. The default value is 0.0f.

BorderMode

The mode used to calculate the border of the image, soft or hard. When set to BorderMode.Soft, the effect pads the image with transparent black pixels as it applies the blur kernel, resulting in a soft edge. When set to BorderMode.Hard, the effect clamps the output to the size of the input image. When the effect applies the blur kernel, it extends the input image with a mirror-type border transform for samples outside of the input bounds. The default value is BorderMode.Soft.

ClassID

Implemented by the derived class to specify the effect's class ID (CLSID) when registering and creating the effect and for binding to an IDeviceEffectProperties.
Note that this is different than the ID property accessor, which queries the IDeviceEffectProperties for the actual runtime effect class ID.
Overriding this property is only necessary in advanced scenarios, such as when wrapping an existing effect (e.g. built-in Direct2D effects), or when working with CustomEffects that have their own generic type arguments (e.g. PixelShaderEffect).

Input
Optimization

The optimization mode. The default value is DirectionalBlurOptimization.Quality.

StandardDeviation

The amount of blur to be applied to the image. You can compute the blur radius of the kernel by multiplying the standard deviation by 3. The units of both the standard deviation and blur radius are DIPs. A value of 0 DIPs disables this effect. The default value is 3.0f.