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
SystemObject
  Ab3d.DirectXDXResourceBase
    Ab3d.DirectXSharedDXResource
      Ab3d.DirectXSharedDXDeviceResource
        Ab3d.DirectX.PostProcessingPostProcessBase
          Ab3d.DirectX.PostProcessingStandardPostProcess
            Ab3d.DirectX.PostProcessingSimplePixelShaderPostProcess
              Ab3d.DirectX.PostProcessingSimpleBlurPostProcess
                Ab3d.DirectXSsaoBlurPostProcess
                Ab3d.DirectXVarianceDepthBlurPostProcess

Namespace: Ab3d.DirectX.PostProcessing
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
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 SimplePixelShaderPostProcessRender(RenderingContext, ShaderResourceView))
Top
See Also