com.google.zxing
Interface Writer

All Known Subinterfaces:
UPCEANWriter
All Known Implementing Classes:
MultiFormatWriter, AbstractUPCEANWriter, Code128Writer, Code39Writer, EAN13Writer, EAN8Writer, ITFWriter, UPCAWriter

public interface Writer

The base class for all objects which encode/generate a barcode image.

Since:
BlackBerry API 6.0.0

Method Summary
 ByteMatrix encode(String contents, BarcodeFormat format, int width, int height)
          Encode a barcode using the default settings.
 ByteMatrix encode(String contents, BarcodeFormat format, int width, int height, Hashtable hints)
          Encode a barcode using the provided parameters.
 



Method Detail

encode

ByteMatrix encode(String contents,
                  BarcodeFormat format,
                  int width,
                  int height)
                  throws WriterException
Encode a barcode using the default settings.

Parameters:
contents - The contents to encode in the barcode
format - The barcode format to generate
width - The preferred width in pixels
height - The preferred height in pixels
Returns:
The generated barcode as a ByteMatrix of unsigned bytes (0 == black, 255 == white)
Throws:
WriterException
Since:
BlackBerry API 6.0.0

encode

ByteMatrix encode(String contents,
                  BarcodeFormat format,
                  int width,
                  int height,
                  Hashtable hints)
                  throws WriterException
Encode a barcode using the provided parameters.

Parameters:
contents - The contents to encode in the barcode
format - The barcode format to generate
width - The preferred width in pixels
height - The preferred height in pixels
hints - 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 6.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