Pinta.ImageManipulation.Effects.ReduceNoiseEffect.ReduceNoiseEffect C# (CSharp) Method

ReduceNoiseEffect() public method

Creates a new effect that will reduce the noise of an image.
public ReduceNoiseEffect ( int radius = 6, double strength = 0.4 ) : System
radius int Radius to consider when reducing noise. Valid range is 1 - 200.
strength double Strength of reduction. Valid range is 0 - 1.
return System
		public ReduceNoiseEffect (int radius = 6, double strength = 0.4)
		{
			if (radius < 1 || radius > 200)
				throw new ArgumentOutOfRangeException ("radius");
			if (strength < 0 || strength > 1)
				throw new ArgumentOutOfRangeException ("strength");

			this.radius = radius;
			this.strength = -0.2 * strength;
		}