BlurProfile

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

Properties

Count

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

Radius

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

Samples

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

Indexers

this[]

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

Methods

Create

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

CreateBoxProfile

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

CreateGaussianProfile

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

CreateTriangleProfile

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