[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.Effects.GaussianBlur

Class GaussianBlur

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

Builtin GaussianBlur effect.

public class GaussianBlur : Effect, IDisposable, IUnknown
Inheritance
object
GaussianBlur
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

GaussianBlur(IntPtr)

Initializes a new instance of the GaussianBlur class.

public GaussianBlur(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Properties

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 GaussianBlurOptimization modes for more info.

public GaussianBlurOptimization Optimization { get; set; }

Property Value

GaussianBlurOptimization

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 GaussianBlur effect.

public static GaussianBlur Create(DeviceContext context)

Parameters

context DeviceContext

Returns

GaussianBlur