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
Format
Gets or sets the barcode format. The value is only suitable if the MultiFormatWriter is used.
public BarcodeFormat Format { get; set; }
Property Value
Options
Gets or sets the options container for the encoding and renderer process.
public EncodingOptions Options { get; set; }
Property Value
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
stringThe contents.