Click or drag to resize
DigitalRuneBlurInitializeGaussianBlur Method
Computes sample offsets and weights for Gaussian blur filter kernel.

Namespace: DigitalRune.Graphics.PostProcessing
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public void InitializeGaussianBlur(
	int numberOfSamples,
	float standardDeviation,
	bool useHardwareFiltering
)

Parameters

numberOfSamples
Type: SystemInt32
The number of samples. This value must be an odd number (e.g. 3, 5, 7, ...).
standardDeviation
Type: SystemSingle
The standard deviation.
useHardwareFiltering
Type: SystemBoolean
If set to hardware filtering is used to increase the blur effect; otherwise, hardware filtering is not used. Use if you are filtering floating-point textures.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionnumberOfSamples is zero or negative.
ArgumentExceptionnumberOfSamples is an even number. A Gaussian blur requires an odd number of samples.
See Also