C# Class Pinta.Core.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: Pinta.Core.Histogram
Mostra file Open project: xxgreg/Pinta Class Usage Examples

Public Methods

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

Protected Methods

Method Description
AddSurfaceRectangleToHistogram ( ImageSurface surface, Gdk rect ) : void

Method Details

AddSurfaceRectangleToHistogram() protected method

protected AddSurfaceRectangleToHistogram ( ImageSurface surface, Gdk rect ) : void
surface Cairo.ImageSurface
rect Gdk
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 ( ) : UnaryPixelOps.Level
return UnaryPixelOps.Level

SetFromLeveledHistogram() public method

public SetFromLeveledHistogram ( HistogramRgb inputHistogram, UnaryPixelOps upo ) : void
inputHistogram HistogramRgb
upo UnaryPixelOps
return void