C# Class Pinta.ImageManipulation.HistogramRgb

Histogram is used to calculate a histogram for a surface (in a selection, if desired). This can then be used to retrieve percentile, average, peak, and distribution information.
Inheritance: Histogram
Exibir arquivo Open project: PintaProject/Pinta.ImageManipulation Class Usage Examples

Public Methods

Method Description
GetMeanColor ( ) : ColorBgra
GetPercentileColor ( float fraction ) : ColorBgra
HistogramRgb ( ) : System
MakeLevelsAuto ( ) : LevelOp
SetFromLeveledHistogram ( HistogramRgb inputHistogram, LevelOp upo ) : void

Protected Methods

Method Description
AddSurfaceRectangleToHistogram ( ISurface surface, Rectangle rect ) : void

Method Details

AddSurfaceRectangleToHistogram() protected method

protected AddSurfaceRectangleToHistogram ( ISurface surface, Rectangle rect ) : void
surface ISurface
rect Rectangle
return void

GetMeanColor() public method

public GetMeanColor ( ) : ColorBgra
return ColorBgra

GetPercentileColor() public method

public GetPercentileColor ( float fraction ) : ColorBgra
fraction float
return ColorBgra

HistogramRgb() public method

public HistogramRgb ( ) : System
return System

MakeLevelsAuto() public method

public MakeLevelsAuto ( ) : LevelOp
return Pinta.ImageManipulation.UnaryPixelOperations.LevelOp

SetFromLeveledHistogram() public method

public SetFromLeveledHistogram ( HistogramRgb inputHistogram, LevelOp upo ) : void
inputHistogram HistogramRgb
upo Pinta.ImageManipulation.UnaryPixelOperations.LevelOp
return void