C# Class Pinta.ImageManipulation.Effects.ReduceNoiseEffect

Inheritance: LocalHistogramEffect
Show file Open project: PintaProject/Pinta.ImageManipulation Class Usage Examples

Public Methods

Method Description
Apply ( ColorBgra color, int area, int hb, int hg, int hr, int ha ) : ColorBgra
ReduceNoiseEffect ( int radius = 6, double strength = 0.4 ) : System

Creates a new effect that will reduce the noise of an image.

Protected Methods

Method Description
RenderLine ( ISurface src, ISurface dest, Rectangle rect ) : void

Private Methods

Method Description
GetPercentileOfColor ( ColorBgra color, int area, int hb, int hg, int hr, int ha ) : ColorBgra

Method Details

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

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

RenderLine() protected method

protected RenderLine ( ISurface src, ISurface dest, Rectangle rect ) : void
src ISurface
dest ISurface
rect Rectangle
return void