Skip to content

# PDFThresholdFilter

Namespace: O2S.Components.PDF4NET.Rendering.Imaging

Defines a binarization filter that uses a fixed threshold to convert grayscale data to black and white.

    public class PDFThresholdFilter : PDFBinarizationFilter

Inheritance Object → PDFBinarizationFilter → PDFThresholdFilter

Remarks

Gray values above the threshold are converted to white, gray values below the threshold are converted to black.

## Constructors

### PDFThresholdFilter(Byte)

Initializes a new PDFThresholdFilter object.

    public PDFThresholdFilter(byte threshold)

Parameters

`threshold` Byte
The filter threshold.