| BlurInitializeGaussianBlur Method |
Computes sample offsets and weights for Gaussian blur filter kernel.
Namespace: DigitalRune.Graphics.PostProcessingAssembly: 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
)
Public Sub InitializeGaussianBlur (
numberOfSamples As Integer,
standardDeviation As Single,
useHardwareFiltering As Boolean
)
public:
void InitializeGaussianBlur(
int numberOfSamples,
float standardDeviation,
bool useHardwareFiltering
)
member InitializeGaussianBlur :
numberOfSamples : int *
standardDeviation : float32 *
useHardwareFiltering : bool -> unit
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 See Also