Pinta.HistogramWidget.DrawHistogram C# (CSharp) Method

DrawHistogram() private method

private DrawHistogram ( Context g ) : void
g Context
return void
        private void DrawHistogram(Context g)
        {
            Histogram histogram = Histogram;
            long max = histogram.GetMax ();
            float[] mean = histogram.GetMean ();

            int channels = histogram.Channels;

            for (int i = 0; i < channels; ++i) {
                DrawChannel(g, histogram.GetVisualColor(i), i, max, mean[i]);
            }
        }