title: Pleora SDK Horizontal Line Artifacts when saving bitmap to jpg
body: <p>My Pleora SDK is licensed, I am not talking about the watermark.</p>
  
  <p>Sometimes it saves just fine, other times though the images saves with these horizontal line artifacts.</p>
  
  <p>I'm saving the image like this:</p>
  
  <pre><code>PvBuffer buffer;
  PvResult operationalResult;
  var filename = "...some filename...";
  var result = stream.RetieveBuffer(ref buffer, ref operationalResult, 100);
  
  if(result.IsOK())
  {
      PvImage image = buffer.Image;
      var bitmap = new System.Drawing.Bitmap(
          width: (int)image.Width,
          height: (int)image.Height,
          format: PixelFormat.Format24bppRgb
      );
  
      image.CopyToBitmap(bitmap);
  
      bitmap.save(filename, ImageFormat.Jpeg);
  }
  </code></pre>
  
  <p>Example image with issue:</p>
  
  <p><a href="https://i.stack.imgur.com/OJ27p.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OJ27p.jpg" alt="enter image description here"></a></p>
  
  <p>Those 2 horizontal lines are what I am talking about. Sometimes they are present, sometimes not, sometimes it's only 1 line.</p>
  
  <p>What could I be doing differently to avoid this issue?</p>