[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.Effects.DirectionalBlur

DirectionalBlur Class

Builtin DirectionalBlur effect.

Inheritance
DirectionalBlur
Implements
Namespace: C1.Util.DX.Direct2D.Effects
Assembly: C1.Win.C1DX.4.8.dll
Syntax
public class DirectionalBlur : Effect, IDisposable, IUnknown

Constructors

Name Description
DirectionalBlur(IntPtr)

Initializes a new instance of the DirectionalBlur class.

Properties

Name Description
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 using this equation and then applied to the bitmap. offset2D – amount of transformation introduced in the blur kernel as a result of the blur angle. dist – distance from the center of the kernel to the current position in the kernel. offset2d = (dist * cos(??), dist * sin(??) )

BorderMode

The mode used to calculate the border of the image, soft or hard. See BorderMode modes for more info.

Optimization

The optimization mode. See DirectionalBlurOptimization modes for more info.

StandardDeviation

Gets or sets the amount of blur to be applied to the image. Default: 1.0f

Methods

Name Description
Create(DeviceContext)

Initializes a new instance of DirectionalBlur effect.