Add custom image or text to QR code generated by ZXing.Net
问题 I use ZXing.Net library to generate a QR code image - At the top of my class: [System.Runtime.InteropServices.DllImport("gdi32.dll")] public static extern bool DeleteObject(IntPtr hObject); My method: protected void UpdateQRSource(String address) { QRCodeWriter qrcode = new QRCodeWriter(); BarcodeWriter barcodeWriter = new BarcodeWriter { Format = BarcodeFormat.QR_CODE, Options = new EncodingOptions { Width = 300, Height = 300, Margin = 4 } }; using (Bitmap bitmap = barcodeWriter.Write