Interface QrCodeService

All Known Implementing Classes:
QrCodeServiceImpl

public interface QrCodeService
  • Method Details

    • createCodeImage

      BufferedImage createCodeImage(String data, int size, boolean overlay) throws com.google.zxing.WriterException, IOException
      encodes the given data into a qr code of the given size. Note: This service does not ensure that the qr code is readable. if the given size is too small, the generated qr code may be unreadable.
      Parameters:
      data - the data to encode
      size - the desired size of the generated code
      Returns:
      the generated qr code image
      Throws:
      com.google.zxing.WriterException
      IOException
    • createCodeImage

      default BufferedImage createCodeImage(String data, int size) throws IOException, com.google.zxing.WriterException
      Throws:
      IOException
      com.google.zxing.WriterException