Class UPCAWriter
This object renders a UPC-A code as a BitMatrix.
public class UPCAWriter : Writer
- Inheritance
-
UPCAWriter
- Implements
- Inherited Members
Constructors
UPCAWriter()
public UPCAWriter()
Properties
DefaultMargin
Gets the default margin.
public int DefaultMargin { get; }
Property Value
Methods
encode(string, BarcodeFormat, int, int)
Encode a barcode using the default settings.
public BitMatrix encode(string contents, BarcodeFormat format, int width, int height)
Parameters
contents
stringThe contents to encode in the barcode
format
BarcodeFormatThe barcode format to generate
width
intThe preferred width in pixels
height
intThe preferred height in pixels
Returns
- BitMatrix
The generated barcode as a Matrix of unsigned bytes (0 == black, 255 == white)
encode(string, BarcodeFormat, int, int, IDictionary<EncodeHintType, object>)
public BitMatrix encode(string contents, BarcodeFormat format, int width, int height, IDictionary<EncodeHintType, object> hints)
Parameters
contents
stringThe contents to encode in the barcode
format
BarcodeFormatThe barcode format to generate
width
intThe preferred width in pixels
height
intThe preferred height in pixels
hints
IDictionary<EncodeHintType, object>Additional parameters to supply to the encoder
Returns
- BitMatrix
The generated barcode as a Matrix of unsigned bytes (0 == black, 255 == white)