Click or drag to resize
DigitalRuneBlur Class
Blurs the image using a convolution filter.
Inheritance Hierarchy

Namespace: DigitalRune.Graphics.PostProcessing
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public class Blur : PostProcessor

The Blur type exposes the following members.

Constructors
  NameDescription
Public methodBlur
Initializes a new instance of the Blur class.
Top
Methods
  NameDescription
Public methodDispose
Releases all resources used by an instance of the PostProcessor class.
(Inherited from PostProcessor.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by an instance of the PostProcessor class and optionally releases the managed resources.
(Inherited from PostProcessor.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeBoxBlur
Computes sample offsets and weights for box blur filter kernel.
Public methodInitializeGaussianBlur
Computes sample offsets and weights for Gaussian blur filter kernel.
Public methodInitializePoissonBlur
Computes sample offsets and weights for a 13-tap Poisson disk filter kernel.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnDisable
Called when this post-processor is disabled.
(Inherited from PostProcessor.)
Protected methodOnEnable
Called when this post-processor is enabled.
(Inherited from PostProcessor.)
Protected methodOnProcess
Called when the post-processor should perform the post-processing.
(Overrides PostProcessorOnProcess(RenderContext).)
Public methodProcess
Performs the post-processing using the SourceTexture and the RenderTarget specified in the render context.
(Inherited from PostProcessor.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyDefaultTargetFormat
Gets or sets the default target format. (This property is used by the PostProcessorChain).
(Inherited from PostProcessor.)
Public propertyDepthScaling
Gets or sets a value that controls how scene depth influences the filter scale. (Only used by anisotropic or bilateral blurs.)
Public propertyEdgeSoftness
Gets or sets the edge softness for bilateral filtering.
Public propertyEnabled
Gets or sets a value indicating whether this post-processor is enabled.
(Inherited from PostProcessor.)
Public propertyFilterInLogSpace
Gets or sets a value indicating whether log-space filtering is used.
Public propertyGraphicsService
Gets the graphics service.
(Inherited from PostProcessor.)
Public propertyIsAnisotropic
Gets or sets a value indicating whether to use an anisotropic filter kernel.
Public propertyIsBilateral
Gets or sets a value indicating whether joint bilateral filtering (= edge-aware filtering) is enabled.
Public propertyIsDisposed
Gets a value indicating whether this post-processor has been disposed of.
(Inherited from PostProcessor.)
Public propertyIsSeparable
Gets or sets a value indicating whether the configured blur filter is separable.
Public propertyMaxNumberOfSamples
Gets the maximum number of samples that are supported.
Public propertyName
Gets or sets the name of the post-processor.
(Inherited from PostProcessor.)
Public propertyNumberOfPasses
Gets or sets the number of blur passes.
Public propertyNumberOfSamples
Gets or sets the number of samples.
Public propertyOffsets
Gets the sample offsets.
Public propertyScale
Gets or sets the scale that is applied to the offsets.
Public propertyWeights
Gets or sets the weights of the samples.
Top
Remarks

Per default, a box blur is performed. The type of blur can be changed using

Many convolution blur filters are separable and can be performed in two passes (a horizontal blur and a vertical blur). If this is the case, IsSeparable can be set to and two passes will be performed. In the second pass, the x and y values in Offsets are switched internally.

Limitations:
Anisotropic or joint bilateral filtering in log-space is not supported. When FilterInLogSpace is set, the properties IsAnisotropic and IsBilateral are ignored.

See Also