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

Apply() public method

public Apply ( ColorBgra color, int area, int hb, int hg, int hr, int ha ) : ColorBgra
color ColorBgra
area int
hb int
hg int
hr int
ha int
return ColorBgra
		public override unsafe ColorBgra Apply (ColorBgra color, int area, int* hb, int* hg, int* hr, int* ha)
		{
			var normalized = GetPercentileOfColor (color, area, hb, hg, hr, ha);
			var lerp = strength * (1 - 0.75 * color.GetIntensity ());

			return ColorBgra.Lerp (color, normalized, lerp);
		}