IlaiyaKumaran V

IlaiyaKumaran V

  • NA
  • 9
  • 4.1k

How to increase the quietZone in Wpf using qr barcode

Jan 6 2016 7:14 AM
Hi 
    Now I'm using to render the qr code with height and width property in wpf  .In that quietZone is 2 and doing calculation. that's all are fine but the output of the qr code is not equalizer the barcode and right and bottom is greater than left and top of the  qrcode.
 
Calculation :
         
int quietZone = (int)QuietZone.All;
float W = (int)Width;
float H = (int)Height;
float width = W / (m_noOfModules + 2 * quietZone);
float height = H / (m_noOfModules + 2 * quietZone);
 
g.FillRectangle(solidBrush, new System.Drawing.RectangleF(x, y, width, height)); 
                 
 
In that width and height can be get in client side. How to equalize the qrcode?