| BlurInitializeBoxBlur Method |
Computes sample offsets and weights for box 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 InitializeBoxBlur(
int numberOfSamples,
bool useHardwareFiltering
)
Public Sub InitializeBoxBlur (
numberOfSamples As Integer,
useHardwareFiltering As Boolean
)
public:
void InitializeBoxBlur(
int numberOfSamples,
bool useHardwareFiltering
)
member InitializeBoxBlur :
numberOfSamples : int *
useHardwareFiltering : bool -> unit
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 See Also