Class QrCode


  • public class QrCode
    extends Object
    This class is a General version for QR_Generator Class Library: zxing Licensed by: Google LLC. License: Apache 2.0 Annotation: For use that code import in your code zxing file contains in source zip; zxing library is proprieties of Google LLC. under Apache license 2.0
    Version:
    3.0
    Author:
    Stefano - Stefifox
    • Constructor Detail

      • QrCode

        public QrCode()
    • Method Detail

      • generate

        public static BufferedImage generate​(String text,
                                             int width,
                                             int height,
                                             int foreground,
                                             int background)
        This method generate a QrCode
        Parameters:
        text - A QrCode Text
        width - A QrCode Width
        height - A QrCode Height
        foreground - A QrCode foreground
        background - A QrCode background
        Returns:
        BufferedImage image
      • generateWhite

        public static BufferedImage generateWhite​(String text,
                                                  int width,
                                                  int height)
        This method generate a White background QrCode
        Parameters:
        text - A QrCode Text
        width - A QrCode Width
        height - A QrCode Height
        Returns:
        BufferedImage image
      • generateBalck

        public static BufferedImage generateBalck​(String text,
                                                  int width,
                                                  int height)
        This method generate a Black background QrCode
        Parameters:
        text - A QrCode Text
        width - A QrCode Width
        height - A QrCode Height
        Returns:
        BufferedImage image
      • generate

        public static BufferedImage generate​(String text)
        This method generate a QrCode with standard height and whith
        Parameters:
        text - A QrCode Text