ComplexBarcodeGenerator
Contents
[
Hide
]Inheritance: java.lang.Object
public final class ComplexBarcodeGenerator
ComplexBarcodeGenerator for backend complex barcode (e.g. SwissQR) images generation.
This sample shows how to create and save a SwissQR image. SwissQRCodetext swissQRCodetext = new SwissQRCodetext(); swissQRCodetext.getBill().setAccount("Account"); swissQRCodetext.getBill().setBillInformation("BillInformation"); // init rest of the fields ComplexBarcodeGenerator cg = new ComplexBarcodeGenerator(swissQRCodetext); Bitmap res = cg.generateBarCodeImage();
Constructors
Constructor | Description |
---|---|
ComplexBarcodeGenerator(IComplexCodetext complexCodetext) | Creates an instance of ComplexBarcodeGenerator. |
Methods
Method | Description |
---|---|
dispose() | Clean up any resources being used. |
equals(Object arg0) | |
generateBarCodeImage() | Generates complex barcode image under current settings. |
getClass() | |
getParameters() | Generation parameters. |
hashCode() | |
notify() | |
notifyAll() | |
save(OutputStream stream, BarCodeImageFormat format) | Generates and saves complex barcode image under current settings. |
save(String filename) | Generates and saves complex barcode image under current settings. |
save(String filename, BarCodeImageFormat format) | Generates and saves complex barcode image under current settings. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
ComplexBarcodeGenerator(IComplexCodetext complexCodetext)
public ComplexBarcodeGenerator(IComplexCodetext complexCodetext)
Creates an instance of ComplexBarcodeGenerator.
Parameters:
Parameter | Type | Description |
---|---|---|
complexCodetext | IComplexCodetext | Complex codetext |
dispose()
public void dispose()
Clean up any resources being used.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
generateBarCodeImage()
public Bitmap generateBarCodeImage()
Generates complex barcode image under current settings.
Returns: android.graphics.Bitmap - Barcode image. See Bitmap .
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getParameters()
public BaseGenerationParameters getParameters()
Generation parameters.
Returns: BaseGenerationParameters
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
save(OutputStream stream, BarCodeImageFormat format)
public void save(OutputStream stream, BarCodeImageFormat format)
Generates and saves complex barcode image under current settings.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.OutputStream | Output System.IO.Stream. |
format | BarCodeImageFormat | Specifies the file format of the output image. |
save(String filename)
public void save(String filename)
Generates and saves complex barcode image under current settings.
Parameters:
Parameter | Type | Description |
---|---|---|
filename | java.lang.String | Path to save to. |
save(String filename, BarCodeImageFormat format)
public void save(String filename, BarCodeImageFormat format)
Generates and saves complex barcode image under current settings.
Parameters:
Parameter | Type | Description |
---|---|---|
filename | java.lang.String | Path to save to. |
format | BarCodeImageFormat | Specifies the file format of the output image. |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |