--- title: "Generate QR codes with the Image Generator SDK" slug: "image-gen-sdk-ig-generate-qr-codes-with-the-sdk-4-25-0" updated: 2025-10-24T12:26:53Z published: 2025-10-28T13:05:24Z canonical: "docs.onespan.com/image-gen-sdk-ig-generate-qr-codes-with-the-sdk-4-25-0" excludeFromSearch: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.onespan.com/llms.txt > Use this file to discover all available pages before exploring further. # Generate QR codes with the Image Generator SDK 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.