QRCodeWriterCreateQrCode Method (Byte, Int32, QRCodeWriterQrErrorCorrectionLevel, Int32)

Renders a QR code.

Overload methods and methods of the created GeneratedBarcode object allow for barcode sizes and colors to be customized. Logos & Branding may also be added using the CreateQrCodeWithLogo method.

Namespace:  IronBarCode
Assembly:  IronBarCode (in IronBarCode.dll) Version: 2020.5.0.0 (2020.5.0.0)
public static GeneratedBarcode CreateQrCode(
	byte[] BinaryData,
	int Size = 500,
	QRCodeWriterQrErrorCorrectionLevel ErrorCorrection = QRCodeWriterQrErrorCorrectionLevel.Highest,
	int QrVersion = 0


Type: SystemByte
The value of the QR code as a byte array.
Size (Optional)
Type: SystemInt32
The width and height of the QR code in pixels.
ErrorCorrection (Optional)
Type: IronBarCodeQRCodeWriterQrErrorCorrectionLevel
The error correction level of the QR code.
QrVersion (Optional)
Type: SystemInt32
The symbol version of the QR Code from 1-40. The default value 0 will automatticaly assign an appropriate QrVersion for your data (highly reccomended).

Higher QrVersion numbers generate a more complex graphic and can encode more data. Lower QrVersion numners generate simpler QR codes that may be more readable at a distance. If you decide to set a very low QrVersion, you may experience an IronBarCodeEncodingException if the size of data you are encoding exceeds the limits of that symbol version.

Please read https://www.qrcode.com/en/about/version.html

Return Value

Type: GeneratedBarcode
A GeneratedBarcode object for the QR code which can be manipulated, annotated and saved to a System.Drawing.Image, an object, image file, PDF, MediaURL or data stream.
See Also
Download DLL or Install with Nuget