Class BarcodeGenerator


  • public class BarcodeGenerator
    extends java.lang.Object
    Barcode Image Generation Helper Class
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String TAG  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static android.graphics.Bitmap generate​(java.lang.String data, com.google.zxing.BarcodeFormat barcodeFormat, int width, int height)
      Generate a Bitmap of the Barcode
      static android.graphics.Bitmap generate​(java.lang.String data, com.google.zxing.BarcodeFormat barcodeFormat, int width, int height, int barcodeColor)
      Generate a Bitmap of the Barcode
      static void generate​(java.lang.String data, com.google.zxing.BarcodeFormat barcodeFormat, int width, int height, int barcodeColor, BarcodeGenerator.BarcodeGeneratedListener barcodeGeneratedListener)
      Generate a Bitmap of the Barcode
      static void generate​(java.lang.String data, com.google.zxing.BarcodeFormat barcodeFormat, int width, int height, BarcodeGenerator.BarcodeGeneratedListener barcodeGeneratedListener)
      Generate a Bitmap of the Barcode
      static android.graphics.Bitmap generate​(java.lang.String data, java.lang.String barcodeFormat, int width, int height)
      Generate a Bitmap of the Barcode
      static android.graphics.Bitmap generate​(java.lang.String data, java.lang.String barcodeFormat, int width, int height, int barcodeColor)
      Generate a Bitmap of the Barcode
      static void generate​(java.lang.String data, java.lang.String barcodeFormat, int width, int height, int barcodeColor, BarcodeGenerator.BarcodeGeneratedListener barcodeGeneratedListener)
      Generate a Bitmap of the Barcode
      static void generate​(java.lang.String data, java.lang.String barcodeFormat, int width, int height, BarcodeGenerator.BarcodeGeneratedListener barcodeGeneratedListener)
      Generate a Bitmap of the Barcode
      • Methods inherited from class java.lang.Object

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

      • generate

        public static void generate​(java.lang.String data,
                                    com.google.zxing.BarcodeFormat barcodeFormat,
                                    int width,
                                    int height,
                                    int barcodeColor,
                                    BarcodeGenerator.BarcodeGeneratedListener barcodeGeneratedListener)
        Generate a Bitmap of the Barcode
        Parameters:
        data - the String data of the Barcode
        barcodeFormat - output barcode format
        width - output image width
        height - output image height
        barcodeColor - output image color
        barcodeGeneratedListener - the listener for the Barcode Generation Task
      • generate

        public static void generate​(java.lang.String data,
                                    com.google.zxing.BarcodeFormat barcodeFormat,
                                    int width,
                                    int height,
                                    BarcodeGenerator.BarcodeGeneratedListener barcodeGeneratedListener)
        Generate a Bitmap of the Barcode
        Parameters:
        data - the String data of the Barcode
        barcodeFormat - output barcode format
        width - output image width
        height - output image height
        barcodeGeneratedListener - the listener for the Barcode Generation Task
      • generate

        @WorkerThread
        public static android.graphics.Bitmap generate​(java.lang.String data,
                                                       com.google.zxing.BarcodeFormat barcodeFormat,
                                                       int width,
                                                       int height)
        Generate a Bitmap of the Barcode
        Parameters:
        data - the String data of the Barcode
        barcodeFormat - output barcode format
        width - output image width
        height - output image height
        Returns:
        Bitmap generated using the data and barcode format
      • generate

        @WorkerThread
        public static android.graphics.Bitmap generate​(java.lang.String data,
                                                       com.google.zxing.BarcodeFormat barcodeFormat,
                                                       int width,
                                                       int height,
                                                       int barcodeColor)
        Generate a Bitmap of the Barcode
        Parameters:
        data - the String data of the Barcode
        barcodeFormat - output barcode format
        width - output image width
        height - output image height
        barcodeColor - output image color
        Returns:
        Bitmap generated using the data and barcode format
      • generate

        @WorkerThread
        public static android.graphics.Bitmap generate​(java.lang.String data,
                                                       java.lang.String barcodeFormat,
                                                       int width,
                                                       int height)
        Generate a Bitmap of the Barcode
        Parameters:
        data - the String data of the Barcode
        barcodeFormat - output barcode format in String form
        width - output image width
        height - output image height
        Returns:
        Bitmap generated using the data and barcode format
      • generate

        @WorkerThread
        public static android.graphics.Bitmap generate​(java.lang.String data,
                                                       java.lang.String barcodeFormat,
                                                       int width,
                                                       int height,
                                                       int barcodeColor)
        Generate a Bitmap of the Barcode
        Parameters:
        data - the String data of the Barcode
        barcodeFormat - output barcode format in String form
        width - output image width
        height - output image height
        barcodeColor - output image color
        Returns:
        Bitmap generated using the data and barcode format
      • generate

        public static void generate​(java.lang.String data,
                                    java.lang.String barcodeFormat,
                                    int width,
                                    int height,
                                    int barcodeColor,
                                    BarcodeGenerator.BarcodeGeneratedListener barcodeGeneratedListener)
        Generate a Bitmap of the Barcode
        Parameters:
        data - the String data of the Barcode
        barcodeFormat - output barcode format
        width - output image width
        height - output image height
        barcodeColor - output image color
        barcodeGeneratedListener - the listener for the Barcode Generation Task
      • generate

        public static void generate​(java.lang.String data,
                                    java.lang.String barcodeFormat,
                                    int width,
                                    int height,
                                    BarcodeGenerator.BarcodeGeneratedListener barcodeGeneratedListener)
        Generate a Bitmap of the Barcode
        Parameters:
        data - the String data of the Barcode
        barcodeFormat - output barcode format
        width - output image width
        height - output image height
        barcodeGeneratedListener - the listener for the Barcode Generation Task