public final class ComplexBarcodeGenerator
extends java.lang.Object
ComplexBarcodeGenerator for backend complex barcode (e.g. SwissQR) images generation.
This sample shows how to create and save a SwissQR image.[C#] var swissQRCodetext = new SwissQRCodetext(); swissQRCodetext.Bill.Account = "Account"; swissQRCodetext.Bill.BillInformation = "BillInformation"; // init rest of the fields using (var cg = new ComplexBarcodeGenerator(swissQRCodetext)) { var res = cg.GenerateBarCodeImage(); }
Constructor and Description |
---|
ComplexBarcodeGenerator(IComplexCodetext complexCodetext)
Creates an instance of ComplexBarcodeGenerator.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Clean up any resources being used.
|
android.graphics.Bitmap |
generateBarCodeImage()
Generates complex barcode image under current settings.
|
BaseGenerationParameters |
getParameters()
Generation parameters.
|
void |
save(java.io.OutputStream stream,
BarCodeImageFormat format)
Generates and saves complex barcode image under current settings.
|
void |
save(java.lang.String filename)
Generates and saves complex barcode image under current settings.
|
void |
save(java.lang.String filename,
BarCodeImageFormat format)
Generates and saves complex barcode image under current settings.
|
public ComplexBarcodeGenerator(IComplexCodetext complexCodetext)
Creates an instance of ComplexBarcodeGenerator.
complexCodetext
- Complex codetextpublic BaseGenerationParameters getParameters()
Generation parameters.
public android.graphics.Bitmap generateBarCodeImage()
Generates complex barcode image under current settings.
Bitmap
.public void save(java.io.OutputStream stream, BarCodeImageFormat format) throws java.io.IOException
Generates and saves complex barcode image under current settings.
stream
- Output System.IO.Stream.format
- Specifies the file format of the output image.java.io.IOException
public void save(java.lang.String filename, BarCodeImageFormat format) throws java.io.IOException
Generates and saves complex barcode image under current settings.
filename
- Path to save to.format
- Specifies the file format of the output image.java.io.IOException
public void save(java.lang.String filename) throws java.io.IOException
Generates and saves complex barcode image under current settings.
filename
- Path to save to.java.io.IOException
public void dispose()
Clean up any resources being used.