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

MedianEffect() public method

Creates a new effect that will apply a median effect to the image.
public MedianEffect ( int radius = 10, int percentile = 50 ) : System
radius int Radius to consider for median. Valid range is 1 - 200.
percentile int Percentile to use for median. Valid range is 0 - 100.
return System
		public MedianEffect (int radius = 10, int percentile = 50)
		{
			if (radius < 1 || radius > 200)
				throw new ArgumentOutOfRangeException ("radius");
			if (percentile < 0 || percentile > 100)
				throw new ArgumentOutOfRangeException ("percentile");

			this.radius = radius;
			this.percentile = percentile;
		}