title: IiTextSharp why it resizes my image and make it bad quality?
body: <p>I'm trying to insert my image to existing pdf. I'm doing it by this simply code:</p>
  
  <pre><code>private void insertBarCodesToPDF(System.Drawing.Image barcode)
      {
          PdfContentByte conent = mPdfStamper.GetOverContent(2);
          byte[] barcodeArray = (byte[]) new ImageConverter().ConvertTo(barcode, typeof(byte[]));
  
          iTextSharp.text.Image image = iTextSharp.text.Image.GetInstance(barcodeArray);
          iTextSharp.text.Rectangle rect = mPdfStamper.Reader.GetPageSize(2);
          image.SetAbsolutePosition(rect.Right - BARCODE_ONLISTPOSITION_X, rect.Top - BARCODE_ONLISTPOSITION_Y);
          conent.AddImage(image);
          mPdfStamper.Close();
          mPdfReader.Close();
      }
  </code></pre>
  
  <p>But after adding I get my image with a very bad qualify and increased size. Check this out:</p>
  
  <p>This is what I need and what I get if I save my Image somewhere by using save() method:</p>
  
  <p><img src="https://i.stack.imgur.com/y9C9t.png" alt="What I need"></p>
  
  <p>And here is what I get in PDF</p>
  
  <p><img src="https://i.stack.imgur.com/Ilmia.png" alt="enter image description here"></p>
  
  <p>What is the problem?? Any ideas?</p>
  
  <p>P.S. original size of image is 138x60, resolution setted to 72dpi.</p>