Click or drag to resize
AB4D logo

SimpleBlurPostProcess Class

SimpleBlurPostProcess applies horizontal or vertical simple blur post process. This blur simply set the color of each pixel with equally averaging its color with the neighboring colors. Number of neighboring colors is define by FilterWidth property.
Inheritance Hierarchy
System.Object
  Ab3d.DirectX.DXResourceBase
    Ab3d.DirectX.SharedDXResource
      Ab3d.DirectX.SharedDXDeviceResource
        Ab3d.DirectX.PostProcessing.PostProcessBase
          Ab3d.DirectX.PostProcessing.StandardPostProcess
            Ab3d.DirectX.PostProcessing.SimplePixelShaderPostProcess
              Ab3d.DirectX.PostProcessing.SimpleBlurPostProcess
                Ab3d.DirectX.SsaoBlurPostProcess
                Ab3d.DirectX.VarianceDepthBlurPostProcess

Namespace: Ab3d.DirectX.PostProcessing
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
public class SimpleBlurPostProcess : SimplePixelShaderPostProcess

The SimpleBlurPostProcess type exposes the following members.

Constructors
 NameDescription
Public methodSimpleBlurPostProcess Initializes a new instance of the SimpleBlurPostProcess class.
Top
Properties
 NameDescription
Public propertyFilterWidth Gets or sets the width of the filter (how much pixels are used to calculate the average pixel color). Default value is 5.
Public propertyIsVerticalBlur Gets or sets a boolean that specifies if vertical blur is applied. if false than horizontal blur is applied. Note that in order to get full blur two SimpleBlurPostProcess must be used - one with horizontal and one with vertical blur.
Public propertyTextureSize Gets or sets the size of the texture.
Top
Methods
 NameDescription
Public methodRender Render renders the post process with using the sourceShaderResourceView as the source texture. It rendered the output to the CurrentRenderTargetView defined in the renderingContext.
(Overrides SimplePixelShaderPostProcess.Render(RenderingContext, ShaderResourceView))
Top
See Also