Table of Contents

Class BarcodeWriter<TOutput>

Namespace
ZXing
Assembly
zxing.dll

A base class for specific barcode writers with specific formats of barcode images.

public class BarcodeWriter<TOutput> : BarcodeWriterGeneric, IBarcodeWriterGeneric, IBarcodeWriter<TOutput>

Type Parameters

TOutput

The type of the output.

Inheritance
BarcodeWriter<TOutput>
Implements
Derived
Inherited Members
Extension Methods

Constructors

BarcodeWriter()

public BarcodeWriter()

Properties

Renderer

Gets or sets the renderer which should be used to render the encoded BitMatrix.

public IBarcodeRenderer<TOutput> Renderer { get; set; }

Property Value

IBarcodeRenderer<TOutput>

Methods

Write(string)

Encodes the specified contents and returns a rendered instance of the barcode. For rendering the instance of the property Renderer is used and has to be set before calling that method.

public TOutput Write(string contents)

Parameters

contents string

The contents.

Returns

TOutput

Write(BitMatrix)

Returns a rendered instance of the barcode which is given by a BitMatrix. For rendering the instance of the property Renderer is used and has to be set before calling that method.

public TOutput Write(BitMatrix matrix)

Parameters

matrix BitMatrix

The matrix.

Returns

TOutput