[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.Effects.DirectionalBlur

Class DirectionalBlur

Namespace
GrapeCity.Documents.DX.Direct2D.Effects
Assembly
GcDocs.DX.Windows.dll

Builtin DirectionalBlur effect.

public class DirectionalBlur : Effect, IDisposable, IUnknown
Inheritance
object
DirectionalBlur
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

DirectionalBlur(IntPtr)

Initializes a new instance of the DirectionalBlur class.

public DirectionalBlur(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

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 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(??) )

public float Angle { get; set; }

Property Value

float

Remarks

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 zero DIPs disables this effect entirely.

BorderMode

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

public BorderMode BorderMode { get; set; }

Property Value

BorderMode

Optimization

The optimization mode. See DirectionalBlurOptimization modes for more info.

public DirectionalBlurOptimization Optimization { get; set; }

Property Value

DirectionalBlurOptimization

Remarks

Default value is Balanced.

StandardDeviation

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

public float StandardDeviation { get; set; }

Property Value

float

Remarks

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 zero DIPs disables this effect entirely.

Methods

Create(DeviceContext)

Initializes a new instance of DirectionalBlur effect.

public static DirectionalBlur Create(DeviceContext context)

Parameters

context DeviceContext

Returns

DirectionalBlur