Table of Contents

Method GetPercentileColor

Namespace
PaintDotNet.Direct2D1.Effects
Assembly
PaintDotNet.Windows.Framework.dll

GetPercentileColor(float)

Gets the color at the specified percentile of the histogram. For each channel independently, finds the intensity bin at which the cumulative sum of histogram values first exceeds the given fraction of the total sum.

ColorRgba128Float GetPercentileColor(float p)

Parameters

p float

The percentile as a fraction in the range [0, 1], where 0 returns the darkest represented color and 1 returns the brightest.

Returns

ColorRgba128Float

A ColorRgba128Float whose per-channel values are the intensities at the requested percentile.