GaussianBlur Class
Namespace: Stride.Rendering.ImagesAssembly: Stride.Rendering.dll
Provides a gaussian blur effect.
System.Object → DisposeBase → ComponentBase → RendererCoreBase → RendererBase → DrawEffect → ImageEffect →
GaussianBlur
Derived from GaussianBlur:
[DataContract("GaussianBlur")]
[Display("Gaussian Blur", null)]
public sealed class GaussianBlur : ImageEffect, IComponent, IReferencable, ICollectorHolder, IImageEffectRenderer, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
Remarks
To improve performance of this gaussian blur is using:
- a separable 1D horizontal and vertical blur
- linear filtering to reduce the number of taps
| Name | Description | |
|---|---|---|
| Constructors | ||
| GaussianBlur() | Initializes a new instance of the GaussianBlur class. |
|
| Properties | ||
| Radius | Gets or sets the radius. |
|
| SigmaRatio | Gets or sets the sigma ratio. The sigma ratio is used to calculate the sigma based on the radius: The actual
formula is |
|
| Methods | ||
| Collect(RenderContext) | ||
| DrawCore(RenderDrawContext) | ||
Constructors
GaussianBlur()
Initializes a new instance of the GaussianBlur class.
public GaussianBlur()
Properties
Radius
Gets or sets the radius.
[DataMember(10)]
public int Radius { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The radius. |
SigmaRatio
Gets or sets the sigma ratio. The sigma ratio is used to calculate the sigma based on the radius: The actual
formula is sigma = radius / SigmaRatio. The default value is 2.0f.
[DataMember(20)]
public float SigmaRatio { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single | The sigma ratio. |
Methods
Collect(RenderContext)
public void Collect(RenderContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderContext | context |
DrawCore(RenderDrawContext)
protected override void DrawCore(RenderDrawContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderDrawContext | context |