GenerateBWQRCode

The GenerateBWQRCode method is used to generate QR code images according to ISO No.18004.

Parameters

GenerateBWQRCode parameters
Parameter name Data type Description
imageSize int

Width of a QR code image in pixels. The minimum image size is 25 pixels (ImageGeneratorSDKConstants.QRCODE_MIN_IMAGE_SIZE), the maximum image size is 700 pixels (ImageGeneratorSDKConstants.QRCODE_MAX_IMAGE_SIZE).

inputValue String The string to be encoded.
errorCorrectionLevel int

The error correction level. Possible values can be retrieved from the ImageGeneratorSDKConstants class; they are:

  • QRCODE_ERROR_CORRECTION_LEVEL_LOW
  • QRCODE_ERROR_CORRECTION_LEVEL_MIDDLE
  • QRCODE_ERROR_CORRECTION_LEVEL_QUALITY
  • QRCODE_ERROR_CORRECTION_LEVEL_HIGH

Return value

The returned value is a BWQRCodeResponse object. It contains the QR code image (which is a buffered image object in the Java edition and a SkiaSharp bitmap object in the .NET edition), as well as the associated Boolean matrix.

For more information about this method, refer to the technical documentation delivered in the Image Generator SDK package in addition to this guide.