Skip to content

# PDFBlackWhiteRenderingSurface

Namespace: O2S.Components.PDF4NET.Rendering.RenderingSurfaces

Defines a black and white rendering surface that uses an array of bytes as storage.

    public class PDFBlackWhiteRenderingSurface : PDFByteRenderingSurface, O2S.Components.PDF4NET.Content.IImageDataProvider

Inheritance Object → PDFRenderingSurface → PDFByteRenderingSurface → PDFBlackWhiteRenderingSurface
Implements IImageDataProvider

## Fields

## Constructors

### PDFBlackWhiteRenderingSurface(Int32, Int32)

Initializes a new PDFBlackWhiteRenderingSurface object.

    public PDFBlackWhiteRenderingSurface(int width, int height)

Parameters

`width` Int32
Surface width.

`height` Int32
Surface height.

### PDFBlackWhiteRenderingSurface()

Initializes a new PDFBlackWhiteRenderingSurface object with an empty storage.

    public PDFBlackWhiteRenderingSurface()

## Properties

### BinarizationFilter

Gets or sets the binarization filter used to fill the content of the rendering surface.

    public PDFBinarizationFilter BinarizationFilter { get; set; }

Property Value

PDFBinarizationFilter
A binarization filter for converting the grayscale data to black and white.

### Bitmap

Gets the surface storage.

    public Byte[] Bitmap { get; }

Property Value

Byte[]
Array of ints that stores the page image in ARGB format.

### Height

Gets or sets the surface height.

    public int Height { get; }

Property Value

Int32
The height of the surface in pixels.

### Width

Gets the surface width.

    public int Width { get; }

Property Value

Int32
The width of the surface in pixels.

## Methods