Class HistogramEffect2
- Namespace
- PaintDotNet.Direct2D1.Effects
- Assembly
- PaintDotNet.Windows.Framework.dll
Similar to HistogramEffect, but processes all channels and outputs an array
of long counts instead of normalized float values. The alpha
format of the input can also be specified as straight or premultiplied, and the maximum
number of bins is 4096 instead of 1024.
This effect does not produce an image output. Instead, its results are available through
the HistogramOutput property after it has been drawn
with DrawImage(IDeviceImage, Point2Float?, in RectFloat?, InterpolationMode, CompositeMode). You can also use the RunAnalysisEffect
extension method.
public sealed class HistogramEffect2 : CustomEffect<HistogramEffect2.Props>, ISerializable, IAnalysisEffect, IDeviceEffect, IDeviceImage, IDirect2DResource, IFactoryProperty, IDeviceEffectProperties, IObjectRef, IIsDisposed, IDisposable, IInternalImpl
- Inheritance
-
HistogramEffect2
- Implements
- Inherited Members
Remarks
Input values are clamped to the range [0, 1]. However, non-finite values are not counted, which permits masking out areas that should not contribute to the histogram.