QRCodeWriterCreateQrCodeWithLogoBitmap Method (Byte, Bitmap, Int32, Int32)

Renders a QR code of given dimensions with a logo image at its center.

Namespace:  IronBarCode
Assembly:  IronBarCode (in IronBarCode.dll) Version: 2020.5.0.0 (2020.5.0.0)
public static GeneratedBarcode CreateQrCodeWithLogoBitmap(
	byte[] BinaryData,
	Bitmap LogoImage,
	int Size = 500,
	int QrVersion = 0


Type: SystemByte
The value of the QR code as a byte array.
Type: System.DrawingBitmap
The logo image as a System.Drawing.Bitmap.
Size (Optional)
Type: SystemInt32
The width and height of the QR code in pixels.
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