com.aspose.barcode.complexbarcode

Class ComplexBarcodeGenerator

  • java.lang.Object
    • com.aspose.barcode.complexbarcode.ComplexBarcodeGenerator


  • 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.
      
        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();
            
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void dispose()
      Clean up any resources being used.
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ComplexBarcodeGenerator

        public ComplexBarcodeGenerator(IComplexCodetext complexCodetext)

        Creates an instance of ComplexBarcodeGenerator.

        Parameters:
        complexCodetext - Complex codetext
    • Method Detail

      • generateBarCodeImage

        public Bitmap generateBarCodeImage()

        Generates complex barcode image under current settings.

        Returns:
        Barcode image. See Bitmap.
      • save

        public void save(java.io.OutputStream stream,
                         BarCodeImageFormat format)
                  throws java.io.IOException

        Generates and saves complex barcode image under current settings.

        Parameters:
        stream - Output System.IO.Stream.
        format - Specifies the file format of the output image.
        Throws:
        java.io.IOException
      • save

        public void save(java.lang.String filename,
                         BarCodeImageFormat format)
                  throws java.io.IOException

        Generates and saves complex barcode image under current settings.

        Parameters:
        filename - Path to save to.
        format - Specifies the file format of the output image.
        Throws:
        java.io.IOException
      • save

        public void save(java.lang.String filename)
                  throws java.io.IOException

        Generates and saves complex barcode image under current settings.

        Parameters:
        filename - Path to save to.
        Throws:
        java.io.IOException
      • dispose

        public void dispose()

        Clean up any resources being used.