BlurProfile

References
public sealed class BlurProfile
Represents a blurring profile, ie. a list of weights for adjacent samples.

Properties

Count

#
Gets the total number of samples in this profile.
public int Count { get; }

Radius

#
Gets the radius of this profile.
public float Radius { get; }

Samples

#
Enumerate over all samples in this profile.
public IEnumerable<BlurSample> Samples { get; }

Indexers

this[]

#
Gets the blurring sample at the given index.
public BlurSample this[
index
Index of sample.
] { get; }
Blur sample at given index.

Methods

Create

#
Generate a blur profile.
public static BlurProfile Create(
radius,
Radius of profile.
profile
Type of profile.
)
Blurring profile.

CreateBoxProfile

#
Create a box blur profile. Constant weight throughout.
public static BlurProfile CreateBoxProfile(
radius
Radius of profile.
)
Profile.

CreateGaussianProfile

#
Create a gaussian blur profile.
public static BlurProfile CreateGaussianProfile(
radius
Radius of profile.
)
Profile.

CreateTriangleProfile

#
Create a triangle blur profile. Weight is zero at the extremes and increases linearly towards the centre.
public static BlurProfile CreateTriangleProfile(
radius
Radius of profile.
)
Profile.