Table of Contents

Class BarcodeWriterGeneric

Namespace
ZXing
Assembly
zxing.dll

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

public class BarcodeWriterGeneric : IBarcodeWriterGeneric
Inheritance
BarcodeWriterGeneric
Implements
Derived
Inherited Members
Extension Methods

Constructors

BarcodeWriterGeneric()

public BarcodeWriterGeneric()

BarcodeWriterGeneric(Writer)

public BarcodeWriterGeneric(Writer encoder)

Parameters

encoder Writer

Properties

Encoder

Gets or sets the writer which encodes the content to a BitMatrix. If no value is set the MultiFormatWriter is used.

public Writer Encoder { get; set; }

Property Value

Writer

Format

Gets or sets the barcode format. The value is only suitable if the MultiFormatWriter is used.

public BarcodeFormat Format { get; set; }

Property Value

BarcodeFormat

Options

Gets or sets the options container for the encoding and renderer process.

public EncodingOptions Options { get; set; }

Property Value

EncodingOptions

Methods

Encode(string)

Encodes the specified contents and returns a BitMatrix array. That array has to be rendered manually or with a IBarcodeRenderer.

public BitMatrix Encode(string contents)

Parameters

contents string

The contents.

Returns

BitMatrix