--- title: "Generate QR codes with the Image Generator SDK" slug: "image-gen-sdk-ig-generate-qr-codes-with-the-sdk-4-27-0" updated: 2026-10-01T10:31:31Z published: 2026-10-01T10:31:31Z canonical: "docs.onespan.com/image-gen-sdk-ig-generate-qr-codes-with-the-sdk-4-27-0" --- > ## 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 | 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, also refer to the technical documentation included in the product package.