com.google.zxing.oned
Class UPCAWriter
java.lang.Object
com.google.zxing.oned.UPCAWriter
- All Implemented Interfaces:
- Writer
public class UPCAWriter
- extends Object
- implements Writer
This object renders a UPC-A code as a BitMatrix
.
- Since:
- BlackBerry API 7.0.0
UPCAWriter
public UPCAWriter()
- Since:
- BlackBerry API 7.0.0
encode
public ByteMatrix encode(String contents,
BarcodeFormat format,
int width,
int height)
throws WriterException
- Description copied from interface:
Writer
- Encode a barcode using the default settings.
- Specified by:
encode
in interface Writer
- Parameters:
contents
- The contents to encode in the barcodeformat
- The barcode format to generatewidth
- The preferred width in pixelsheight
- The preferred height in pixels
- Returns:
- The generated barcode as a ByteMatrix of unsigned bytes (0 == black, 255 == white)
- Throws:
WriterException
- Since:
- BlackBerry API 7.0.0
encode
public ByteMatrix encode(String contents,
BarcodeFormat format,
int width,
int height,
Hashtable hints)
throws WriterException
- Description copied from interface:
Writer
- Encode a barcode using the provided parameters.
- Specified by:
encode
in interface Writer
- Parameters:
contents
- The contents to encode in the barcodeformat
- The barcode format to generatewidth
- The preferred width in pixelsheight
- The preferred height in pixelshints
- Additional parameters to supply to the encoder
- Returns:
- The generated barcode as a ByteMatrix of unsigned bytes (0 == black, 255 == white)
- Throws:
WriterException
- Since:
- BlackBerry API 7.0.0
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal