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
-
IBarcodeWriter<TOutput>
- 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
stringThe 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
BitMatrixThe matrix.
Returns
- TOutput