Click or drag to resize
DigitalRuneBlurInitializeBoxBlur Method
Computes sample offsets and weights for box 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 InitializeBoxBlur(
	int numberOfSamples,
	bool useHardwareFiltering
)

Parameters

numberOfSamples
Type: SystemInt32
The number of samples. This value must be an odd number (e.g. 3, 5, 7, ...).
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 box blur requires an odd number of samples.
See Also