- 23 Oct 2024
- 1 Minute à lire
- SombreLumière
Generate QR codes with the Image Generator SDK
- Mis à jour le 23 Oct 2024
- 1 Minute à lire
- SombreLumière
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:
|
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.