Generate QR codes with the Image Generator SDK
  • 23 Oct 2024
  • 1 Minute to read
  • Dark
    Light
  • PDF

Generate QR codes with the Image Generator SDK

  • Dark
    Light
  • PDF

Article summary

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.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Ozzy, our interactive help assistant