title: Adding cutomize logo in QR Code not working using Zxing library
body: <p>can someone help me with my issue when rendering an overlay to my Bitmap image for QR Code generation using <code>Zxing.Net</code> library. I'm using <code>.NETCore 6.0</code> and don't know what else am I missing here. I got this code on the internet which has the same issue with mine (to add a customize logo to a generated QRCode). But, somehow this code is not working on my end. It generated the QR Code but does not have a logo on the middle of the QR Code.</p>
  <p>Just to add the size of the said logo is: <code>Width: 1500px</code> and <code>Height: 1503px</code>.</p>
  <p>Also, I found out is some articles that this library or adding of logo only works for Windows Form (w/c I also have a warning message when using this (<code>BarcodeWriter</code> is only supported on <code>Windows</code>))? If yes, is there a way it can work on a Web Form?</p>
  <pre><code>private static byte[] QRCodeImageConversion(string qrString, string logoPath)
  
      {
          var encOptions = new EncodingOptions
          {
              Width = 300,
              Height = 300,
              Margin = 0
          };
  
          var bw = new BarcodeWriter
          {
              Renderer = new BitmapRenderer(),
              Options = encOptions,
              Format = BarcodeFormat.QR_CODE
          };
  
          encOptions.Hints.Add(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.H);
  
          Bitmap bm = bw.Write(qrString);
          Bitmap overlay = new(logoPath);
  
          int deltaHeigth = bm.Height - overlay.Height;
          int deltaWidth = bm.Width - overlay.Width;
  
          Graphics g = Graphics.FromImage(bm);
          g.DrawImage(overlay, new Point(deltaWidth / 2, deltaHeigth / 2));
  
          var ms = new MemoryStream();
          bm.Save(ms, ImageFormat.Bmp);
  
          return ms.ToArray();
      }
  </code></pre>
  <p>Here is an example of what I'm trying to achieve:
  <a href="https://i.stack.imgur.com/ankRW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ankRW.png" alt="enter image description here" /></a></p>
  <p>Thank you in advance to someone who can help me with my issue. :)</p>